2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////class ConstructorOverload {
|
|
|
|
//// /*constructorOverload1*/constructor();
|
|
|
|
//// /*constructorOverload2*/constructor(foo: string);
|
|
|
|
//// /*constructorDefinition*/constructor(foo: any) { }
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////var constructorOverload = new /*constructorOverloadReference1*/ConstructorOverload();
|
|
|
|
////var constructorOverload = new /*constructorOverloadReference2*/ConstructorOverload("foo");
|
|
|
|
|
|
|
|
goTo.marker('constructorOverloadReference1');
|
|
|
|
goTo.definition();
|
2014-08-01 04:58:18 +02:00
|
|
|
verify.caretAtMarker('constructorDefinition');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('constructorOverloadReference2');
|
|
|
|
goTo.definition();
|
2014-08-01 04:58:18 +02:00
|
|
|
verify.caretAtMarker('constructorDefinition');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('constructorOverload1');
|
|
|
|
goTo.definition();
|
|
|
|
verify.caretAtMarker('constructorDefinition');
|