Created
October 4, 2018 07:47
-
-
Save S2/f2e25ca548f185781f6d72a7ac5a9883 to your computer and use it in GitHub Desktop.
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 { | |
constructor(){ | |
console.log("1111111111111") | |
} | |
} | |
class Adash extends A { | |
constructor(){ | |
super() | |
console.log("2222222222222") | |
} | |
} | |
interface B{ | |
a : typeof A | |
} | |
class C implements B { | |
a = Adash | |
constructor(){ | |
console.log("AAAAAAAAA") | |
new this.a() | |
} | |
} | |
new C() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment