Need to make this compile
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 comment has been minimized.
this will not compile, but will work at runtime