TypeScript/tests/baselines/reference/parserExportAsFunctionIdentifier.types

20 lines
329 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/parser/ecmascript5/parserExportAsFunctionIdentifier.ts ===
interface Foo {
>Foo : Foo
2014-08-15 23:33:16 +02:00
export(): string;
>export : () => string
2014-08-15 23:33:16 +02:00
}
var f: Foo;
>f : Foo
>Foo : Foo
2014-08-15 23:33:16 +02:00
var x = f.export();
>x : string
2014-08-15 23:33:16 +02:00
>f.export() : string
>f.export : () => string
>f : Foo
>export : () => string
2014-08-15 23:33:16 +02:00