mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 01:43:59 -05:00
Add test to shims
This commit is contained in:
14
tests/cases/fourslash/shims/goToTypeDefinition.ts
Normal file
14
tests/cases/fourslash/shims/goToTypeDefinition.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @Filename: goToTypeDefinition_Definition.ts
|
||||
/////*definition*/class C {
|
||||
//// p;
|
||||
////}
|
||||
////var c: C;
|
||||
|
||||
// @Filename: goToTypeDefinition_Consumption.ts
|
||||
/////*reference*/c = undefined;
|
||||
|
||||
goTo.marker('reference');
|
||||
goTo.type();
|
||||
verify.caretAtMarker('definition');
|
||||
Reference in New Issue
Block a user