mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add initial test
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user