Created
October 5, 2018 03:52
-
-
Save S2/fc1a0dce41ca80d174780ad5ade853cb 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 AAA{ | |
constructor(){ | |
console.log("aaa") | |
} | |
} | |
class BBB{ | |
constructor(){ | |
console.log("bbb") | |
} | |
} | |
class Hoge<A , B>{ | |
constructor(public a : A , public b : B){ | |
console.log("CCCCC") | |
} | |
} | |
class Fuga<B> extends Hoge<AAA , B>{ | |
} | |
interface Piyo<Y>{ | |
a : {new(p : AAA , q : Y) :Fuga<Y>} | |
} | |
class Bar implements Piyo<BBB>{ | |
a = Fuga | |
constructor(){ | |
new this.a(new AAA(),new BBB()) | |
} | |
} | |
new Bar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment