Last active
November 25, 2017 21:38
-
-
Save ORESoftware/66b72b4b85262d957cb03ad097e4743e to your computer and use it in GitHub Desktop.
Need to make this compile
This file contains 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 { | |
foo(): A { | |
return this; | |
} | |
} | |
class B extends A { | |
bar(): B { | |
return this; | |
} | |
} | |
new B().foo().bar(); // does not compile | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this will not compile, but will work at runtime