You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Completion list for module with default export should use "default", not the function's name #12957
/// <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.
Activity
DanielRosenwasser commentedon Dec 27, 2016
Looks like a regression of #6124.