TypeScript/tests/cases/fourslash/semanticClassificatonTypeAlias.ts

15 lines
546 B
TypeScript
Raw Normal View History

2014-12-06 02:32:36 +01:00
/// <reference path="fourslash.ts"/>
////type /*0*/Alias = number
////var x: /*1*/Alias;
////var y = </*2*/Alias>{};
////function f(x: /*3*/Alias): /*4*/Alias { return undefined; }
var c = classification;
verify.semanticClassificationsAre(
2015-04-30 23:57:38 +02:00
c.typeAliasName("Alias", test.marker("0").position),
c.typeAliasName("Alias", test.marker("1").position),
c.typeAliasName("Alias", test.marker("2").position),
c.typeAliasName("Alias", test.marker("3").position),
c.typeAliasName("Alias", test.marker("4").position)
2014-12-06 02:32:36 +01:00
);