TypeScript/tests/baselines/reference/stringPropCodeGen.types

29 lines
597 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/stringPropCodeGen.ts ===
var a = {
>a : { "foo": () => void; "bar": number; }
2014-08-22 03:39:46 +02:00
>{ "foo" : function() { }, "bar" : 5} : { "foo": () => void; "bar": number; }
2014-08-15 23:33:16 +02:00
"foo" : function() { },
>function() { } : () => void
"bar" : 5
};
a.foo();
>a.foo() : void
>a.foo : () => void
>a : { "foo": () => void; "bar": number; }
>foo : () => void
a.bar.toString();
>a.bar.toString() : string
>a.bar.toString : (radix?: number) => string
>a.bar : number
>a : { "foo": () => void; "bar": number; }
>bar : number
>toString : (radix?: number) => string