Skip to content

Instantly share code, notes, and snippets.

@S2
Created October 5, 2018 03:52
Show Gist options
  • Save S2/fc1a0dce41ca80d174780ad5ade853cb to your computer and use it in GitHub Desktop.
Save S2/fc1a0dce41ca80d174780ad5ade853cb to your computer and use it in GitHub Desktop.
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