TypeScript/tests/cases/conformance/es6/classExpressions/typeArgumentInferenceWithClassExpression3.ts

5 lines
110 B
TypeScript
Raw Normal View History

2015-07-09 23:41:08 +02:00
function foo<T>(x = class { prop: T }): T {
return undefined;
}
foo(class { prop = "hello" }).length;