TypeScript/tests/baselines/reference/stringPropCodeGen.types
2015-04-15 16:44:20 -07:00

30 lines
610 B
Plaintext

=== tests/cases/compiler/stringPropCodeGen.ts ===
var a = {
>a : { "foo": () => void; "bar": number; }
>{ "foo" : function() { }, "bar" : 5} : { "foo": () => void; "bar": number; }
"foo" : function() { },
>function() { } : () => void
"bar" : 5
>5 : number
};
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