Add initial test

This commit is contained in:
Nathan Shively-Sanders 2015-11-02 10:44:25 -08:00
parent 16f69daf10
commit 6d683d2a96

View file

@ -0,0 +1,13 @@
class A<T> {
genericVar: T
}
function B<T>() {
// class expression can use T
return class extends A<T> { }
}
// extends can call B
class K extends B<number>() {
name: string;
}
var c = new K();
c.genericVar = 12;