5 lines
106 B
TypeScript
5 lines
106 B
TypeScript
|
class C {
|
||
|
constructor(x: () => void) { }
|
||
|
}
|
||
|
var c = new C(() => { return asdf; } ) // should error
|