TypeScript/tests/baselines/reference/parserFunctionPropertyAssignment1.types
2014-08-15 14:37:48 -07:00

8 lines
245 B
Plaintext

=== tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment1.ts ===
var v = { foo() { } };
>v : { foo: () => void; }
>{ foo() { } } : { foo: () => void; }
>foo : () => void
>foo() { } : () => void