Skip to content

Instantly share code, notes, and snippets.

@S2
Created October 4, 2018 10:05
Show Gist options
  • Save S2/31825c6ce15c1b4656748e409675858c to your computer and use it in GitHub Desktop.
Save S2/31825c6ce15c1b4656748e409675858c 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){
}
}
class Fuga<B> extends Hoge<AAA , B>{
}
new Fuga<BBB>(new AAA() , new BBB());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment