TypeScript/tests/baselines/reference/declFileForInterfaceWithOptionalFunction.types

14 lines
584 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts ===
interface I {
2015-04-13 23:01:57 +02:00
>I : I, Symbol(I, Decl(declFileForInterfaceWithOptionalFunction.ts, 0, 0))
2014-08-15 23:33:16 +02:00
foo? (x?);
2015-04-13 23:01:57 +02:00
>foo : (x?: any) => any, Symbol(foo, Decl(declFileForInterfaceWithOptionalFunction.ts, 1, 13))
>x : any, Symbol(x, Decl(declFileForInterfaceWithOptionalFunction.ts, 2, 10))
2014-08-15 23:33:16 +02:00
foo2? (x?: number): number;
2015-04-13 23:01:57 +02:00
>foo2 : (x?: number) => number, Symbol(foo2, Decl(declFileForInterfaceWithOptionalFunction.ts, 2, 14))
>x : number, Symbol(x, Decl(declFileForInterfaceWithOptionalFunction.ts, 3, 11))
2014-08-15 23:33:16 +02:00
}