2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
2014-10-07 20:30:27 +02:00
|
|
|
////var /*1*/x: {
|
2014-07-13 01:04:16 +02:00
|
|
|
//// func1(x: number): number; // Method signature
|
|
|
|
//// func2: (x: number) => number; // Function type literal
|
|
|
|
//// func3: { (x: number): number }; // Object type literal
|
|
|
|
////};
|
|
|
|
////
|
|
|
|
////x.func1 = x.func2 = x.func3;
|
|
|
|
////
|
2014-10-07 20:30:27 +02:00
|
|
|
////var /*2*/y: {
|
2014-07-13 01:04:16 +02:00
|
|
|
//// func4(x: number): number;
|
|
|
|
//// func4(s: string): string;
|
|
|
|
//// func5: {
|
|
|
|
//// (x: number): number;
|
|
|
|
//// (s: string): string;
|
|
|
|
//// };
|
|
|
|
////};
|
|
|
|
////
|
|
|
|
////y.func4 = y.func5;
|
|
|
|
////y.func5 = y.func4;
|
|
|
|
|
|
|
|
verify.not.errorExistsAfterMarker('1');
|
|
|
|
goTo.marker('1');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs('(var) x: {\n func1(x: number): number;\n func2: (x: number) => number;\n func3: (x: number) => number;\n}');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('2');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs('(var) y: {\n func4(x: number): number;\n func4(s: string): string;\n func5: {\n (x: number): number;\n (s: string): string;\n };\n}');
|
2014-07-13 01:04:16 +02:00
|
|
|
|