TypeScript/tests/cases/fourslash/navigationBarWellKnownSymbolExpando.ts
Andrew Branch 7be7cba050 Fixes binding well known symbol assignment via element access (#33687)
* Fix binding well-known symbols by element access

* Add navigationBar test

* Revert settings.json change

* Accept baselines

* Actually make it bind

* Accept API baselines

* Dont use internal name in API
2019-09-30 16:14:07 -07:00

54 lines
865 B
TypeScript

/// <reference path="fourslash.ts"/>
////function f() {}
////f[Symbol.iterator] = function() {}
verify.navigationTree({
"text": "<global>",
"kind": "script",
"childItems": [
{
"text": "f",
"kind": "class",
"childItems": [
{
"text": "constructor",
"kind": "constructor"
},
{
"text": "[Symbol.iterator]",
"kind": "function"
}
]
}
]
});
verify.navigationBar([
{
"text": "<global>",
"kind": "script",
"childItems": [
{
"text": "f",
"kind": "class"
}
]
},
{
"text": "f",
"kind": "class",
"childItems": [
{
"text": "constructor",
"kind": "constructor"
},
{
"text": "[Symbol.iterator]",
"kind": "function"
}
],
"indent": 1
}
]);