Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicated defs #8270

Merged
merged 14 commits into from
Oct 11, 2019
Merged

Conversation

asterite
Copy link
Member

@asterite asterite commented Oct 4, 2019

Extracted from #8260

@@ -43,8 +43,6 @@ module IO::ByteFormat
abstract def encode(int : UInt64, io : IO)
abstract def encode(int : Int128, io : IO)
abstract def encode(int : UInt128, io : IO)
abstract def encode(int : Float32, io : IO)
abstract def encode(int : Float64, io : IO)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these useless?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because they are defined as non-abstract a few lines below. It doesn't make sense to define a method as abstract and as non-abstract in the same type.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, I'm blind :)

@asterite asterite added this to the 0.32.0 milestone Oct 11, 2019
@asterite asterite merged commit 6d61960 into crystal-lang:master Oct 11, 2019
@asterite asterite deleted the remove-duplicated-defs branch October 11, 2019 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants