2014-10-11 00:02:48 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
/////** Module comment*/
|
|
|
|
////export module m1 {
|
|
|
|
//// /** m2 comments*/
|
|
|
|
//// export module m2 {
|
|
|
|
//// /** class comment;*/
|
|
|
|
//// export class /*1*/c {
|
|
|
|
//// };
|
|
|
|
//// }
|
2014-10-11 00:52:34 +02:00
|
|
|
//// export function foo() {
|
|
|
|
//// }
|
2014-10-11 00:02:48 +02:00
|
|
|
////}
|
|
|
|
/////**This is on import declaration*/
|
|
|
|
////import /*2*/internalAlias = m1.m2./*3*/c;
|
2014-10-11 00:24:19 +02:00
|
|
|
////var /*4*/newVar = new /*5*/internalAlias();
|
|
|
|
////var /*6*/anotherAliasVar = /*7*/internalAlias;
|
2014-10-11 00:52:34 +02:00
|
|
|
////import /*8*/internalFoo = m1./*9*/foo;
|
|
|
|
////var /*10*/callVar = /*11*/internalFoo();
|
|
|
|
////var /*12*/anotherAliasFoo = /*13*/internalFoo;
|
2014-10-11 00:02:48 +02:00
|
|
|
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfos({
|
|
|
|
1: ["class m1.m2.c", "class comment;"],
|
2017-10-26 02:50:11 +02:00
|
|
|
2: ["(alias) class internalAlias\nimport internalAlias = m1.m2.c", "This is on import declaration"],
|
2016-09-09 18:02:55 +02:00
|
|
|
3: ["class m1.m2.c", "class comment;"],
|
|
|
|
4: "var newVar: internalAlias",
|
2018-08-27 18:38:52 +02:00
|
|
|
5: ["(alias) new internalAlias(): internalAlias\nimport internalAlias = m1.m2.c", "This is on import declaration"],
|
2016-09-09 18:02:55 +02:00
|
|
|
6: "var anotherAliasVar: typeof internalAlias",
|
2017-10-26 02:50:11 +02:00
|
|
|
7: ["(alias) class internalAlias\nimport internalAlias = m1.m2.c", "This is on import declaration"],
|
|
|
|
8: "(alias) function internalFoo(): void\nimport internalFoo = m1.foo",
|
2016-09-09 18:02:55 +02:00
|
|
|
9: "function m1.foo(): void",
|
|
|
|
10: "var callVar: void",
|
|
|
|
11: "(alias) internalFoo(): void\nimport internalFoo = m1.foo",
|
|
|
|
12: "var anotherAliasFoo: () => void",
|
2017-10-26 02:50:11 +02:00
|
|
|
13: "(alias) function internalFoo(): void\nimport internalFoo = m1.foo"
|
2016-09-09 18:02:55 +02:00
|
|
|
});
|