Last active
November 9, 2015 19:27
-
-
Save chris-hatton/1642f2e4f20e796d3203 to your computer and use it in GitHub Desktop.
A test to see whether Swift's Generics system can carry through a self-derived type, which is possible, and often useful, in Java.
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 A<SelfType : A<SelfType>> | |
{ | |
} | |
class B : A<B> // Line fails to compile with: "'A' requires that 'B' inherit from 'A<B>'" even though it does | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes! why?!
frustrating!!!