2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////class MethodOverload {
|
2014-08-01 04:58:18 +02:00
|
|
|
//// static me/*staticMethodOverload1*/thod();
|
|
|
|
//// static me/*staticMethodOverload2*/thod(foo: string);
|
2014-07-13 01:04:16 +02:00
|
|
|
/////*staticMethodDefinition*/static method(foo?: any) { }
|
2014-08-01 04:58:18 +02:00
|
|
|
//// public met/*instanceMethodOverload1*/hod(): any;
|
|
|
|
//// public met/*instanceMethodOverload2*/hod(foo: string);
|
2014-07-13 01:04:16 +02:00
|
|
|
/////*instanceMethodDefinition*/public method(foo?: any) { return "foo" }
|
|
|
|
////}
|
|
|
|
|
|
|
|
////// static method
|
|
|
|
////MethodOverload./*staticMethodReference1*/method();
|
|
|
|
////MethodOverload./*staticMethodReference2*/method("123");
|
|
|
|
|
|
|
|
////// instance method
|
|
|
|
////var methodOverload = new MethodOverload();
|
|
|
|
////methodOverload./*instanceMethodReference1*/method();
|
|
|
|
////methodOverload./*instanceMethodReference2*/method("456");
|
|
|
|
|
|
|
|
goTo.marker('staticMethodReference1');
|
|
|
|
goTo.definition();
|
2014-08-01 04:58:18 +02:00
|
|
|
verify.caretAtMarker('staticMethodDefinition');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('staticMethodReference2');
|
|
|
|
goTo.definition();
|
2014-08-01 04:58:18 +02:00
|
|
|
verify.caretAtMarker('staticMethodDefinition');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('instanceMethodReference1');
|
|
|
|
goTo.definition();
|
2014-08-01 04:58:18 +02:00
|
|
|
verify.caretAtMarker('instanceMethodDefinition');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('instanceMethodReference2');
|
|
|
|
goTo.definition();
|
2014-08-01 04:58:18 +02:00
|
|
|
verify.caretAtMarker('instanceMethodDefinition');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('staticMethodOverload1');
|
|
|
|
goTo.definition();
|
|
|
|
verify.caretAtMarker('staticMethodDefinition');
|
|
|
|
|
|
|
|
goTo.marker('instanceMethodOverload1');
|
|
|
|
goTo.definition();
|
|
|
|
verify.caretAtMarker('instanceMethodDefinition');
|
|
|
|
|