-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issueA PR has been merged for this issue

Description
TypeScript Version: nightly (2.2.0-dev.20161215)
Code
/// <reference path="fourslash.ts" />
// @Filename: a.ts
////export function x() {}
////export default function y() {}
// @Filename: b.ts
////import * as a from "./a";
////a./**/;
goTo.marker();
verify.completionListContains("x", "function x(): void");
verify.completionListContains("default", "function y(): void");
Expected behavior:
Test succeeds.
Actual behavior:
Error: Marker:
Expected "{
"name": "default",
"text": "function b(): void"
}" to be in list [{
"name": "x",
"kind": "function"
},
{
"name": "y",
"kind": "function"
}]
Problem: a.y()
won't compile, a.default()
will. So we should use default
for the completion, not y
.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issueA PR has been merged for this issue