TypeScript/tests/baselines/reference/stringPropCodeGen.types
2014-08-25 10:55:22 -07:00

29 lines
597 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
};
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