TypeScript/tests/baselines/reference/parserExportAsFunctionIdentifier.types

20 lines
839 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/parser/ecmascript5/parserExportAsFunctionIdentifier.ts ===
interface Foo {
2015-04-13 23:01:57 +02:00
>Foo : Foo, Symbol(Foo, Decl(parserExportAsFunctionIdentifier.ts, 0, 0))
2014-08-15 23:33:16 +02:00
export(): string;
2015-04-13 23:01:57 +02:00
>export : () => string, Symbol(export, Decl(parserExportAsFunctionIdentifier.ts, 0, 15))
2014-08-15 23:33:16 +02:00
}
var f: Foo;
2015-04-13 23:01:57 +02:00
>f : Foo, Symbol(f, Decl(parserExportAsFunctionIdentifier.ts, 4, 3))
>Foo : Foo, Symbol(Foo, Decl(parserExportAsFunctionIdentifier.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var x = f.export();
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(parserExportAsFunctionIdentifier.ts, 5, 3))
2014-08-15 23:33:16 +02:00
>f.export() : string
2015-04-13 23:01:57 +02:00
>f.export : () => string, Symbol(Foo.export, Decl(parserExportAsFunctionIdentifier.ts, 0, 15))
>f : Foo, Symbol(f, Decl(parserExportAsFunctionIdentifier.ts, 4, 3))
>export : () => string, Symbol(Foo.export, Decl(parserExportAsFunctionIdentifier.ts, 0, 15))
2014-08-15 23:33:16 +02:00