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

6 lines
177 B
TypeScript

function foo<T>(x = class { prop: T }): T {
return undefined;
}
// Should not infer string because it is a static property
foo(class { static prop = "hello" }).length;