TypeScript/tests/cases/compiler/baseExpressionTypeParameters.ts
2017-08-19 09:53:46 +02:00

13 lines
235 B
TypeScript

// Repro from #17829
function base<T>() {
class Base {
static prop: T;
}
return Base;
}
class Gen<T> extends base<T>() {} // Error, T not in scope
class Spec extends Gen<string> {}
<string>Spec.prop;