TypeScript/tests/cases/conformance/es6/classExpressions/typeArgumentInferenceWithClassExpression1.ts
Jason Freeman 8bb956eb91 More tests
2015-07-09 14:41:08 -07:00

5 lines
124 B
TypeScript

function foo<T>(x = class { static prop: T }): T {
return undefined;
}
foo(class { static prop = "hello" }).length;