2014-07-13 01:04:16 +02:00
|
|
|
//// [parseTypes.ts]
|
|
|
|
|
|
|
|
var x = <() => number>null;
|
|
|
|
var y = <{(): number; }>null;
|
|
|
|
var z = <{new(): number; }>null
|
|
|
|
var w = <{[x:number]: number; }>null
|
|
|
|
function f() { return 3 };
|
|
|
|
function g(s: string) { true };
|
|
|
|
y=f;
|
|
|
|
y=g;
|
|
|
|
x=g;
|
|
|
|
w=g;
|
|
|
|
z=g;
|
|
|
|
|
|
|
|
|
|
|
|
//// [parseTypes.js]
|
|
|
|
var x = null;
|
|
|
|
var y = null;
|
|
|
|
var z = null;
|
|
|
|
var w = null;
|
2015-02-07 05:03:24 +01:00
|
|
|
function f() { return 3; }
|
2014-07-13 01:04:16 +02:00
|
|
|
;
|
2015-02-07 05:03:24 +01:00
|
|
|
function g(s) { true; }
|
2014-07-13 01:04:16 +02:00
|
|
|
;
|
|
|
|
y = f;
|
|
|
|
y = g;
|
|
|
|
x = g;
|
|
|
|
w = g;
|
|
|
|
z = g;
|