Created
May 16, 2017 11:07
-
-
Save d-date/d3da6805070dbd069927a8f5ddd95bd6 to your computer and use it in GitHub Desktop.
なるほどな。 @kumamo_tone #CodePiece
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
class Parent { | |
enum Section { | |
case hoge1 | |
case hoge2 | |
case hoge3 | |
case hoge4 | |
} | |
} | |
final class Child : Parent { | |
enum Section { | |
case hoge5 | |
case hoge6 | |
case hoge7 | |
case hoge8 | |
} | |
func select(section: Section) { | |
//section is ambiguous for type lookup in this context | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment