Skip to content

Instantly share code, notes, and snippets.

@dittos
Last active March 27, 2019 13:08
Show Gist options
  • Save dittos/540b57d0a3b71650dd039482dff81670 to your computer and use it in GitHub Desktop.
Save dittos/540b57d0a3b71650dd039482dff81670 to your computer and use it in GitHub Desktop.
interface X<T> {
// m(o: T): void; // is ok
(o: T): void;
}
class A {
f: X<this>;
}
class B extends A {
g: X<this>;
}
const s: A = new B();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment