2015-02-25 01:11:43 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
2016-02-13 00:40:47 +01:00
|
|
|
// @ModuleResolution: classic
|
2015-02-25 01:11:43 +01:00
|
|
|
|
|
|
|
// @Filename: m1.ts
|
|
|
|
////export var foo: number = 1;
|
|
|
|
////export function bar() { return 10; }
|
|
|
|
////export function baz() { return 10; }
|
|
|
|
|
|
|
|
// @Filename: m2.ts
|
|
|
|
////import {/*1*/, /*2*/ from "m1"
|
|
|
|
////import {/*3*/} from "m1"
|
|
|
|
////import {foo,/*4*/ from "m1"
|
|
|
|
////import {bar as /*5*/, /*6*/ from "m1"
|
|
|
|
////import {foo, bar, baz as b,/*7*/} from "m1"
|
2015-07-11 00:22:32 +02:00
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
|
|
|
{ marker: ["1", "2", "3"], exact: ["bar", "baz", "foo"] },
|
|
|
|
{ marker: "4", exact: ["bar", "baz"] },
|
|
|
|
{ marker: "5", exact: undefined, isNewIdentifierLocation: true },
|
|
|
|
{ marker: "6", exact: ["baz", "foo"] },
|
|
|
|
{ marker: "7", exact: undefined },
|
|
|
|
);
|