Created
April 13, 2017 08:12
-
-
Save hiragram/c6acdd9b6abe857110c843f0e2908496 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension Array { | |
| var hoge: String { | |
| return "" | |
| } | |
| } | |
| extension Array where Element: Integer { | |
| var hoge: Int { | |
| return 1 | |
| } | |
| } | |
| let array = [1,2,3,4,5] | |
| array.hoge // Ambiguous use of 'hoge' |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
なんでこんなクソextensionあるのという話はおいておいて、3.1でのどの変更がこの結果を生んでるのかが気になる