-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 3.0.0-dev.20180608
Search Terms:
- Go to definition
Code
export const _ = 1;
const f = x => console.log(x)
f()Run go to definition on f
Expected behavior:
One definition entry returned
Actual behavior:
Two definition entries returned:
[Trace - 8:58:30 AM] Response received: definition (207). Request took 1 ms. Success: true
Result: [
{
"file": "/Users/matb/projects/san/App.js",
"start": {
"line": 3,
"offset": 7
},
"end": {
"line": 3,
"offset": 8
}
},
{
"file": "/Users/matb/projects/san/App.js",
"start": {
"line": 3,
"offset": 11
},
"end": {
"line": 3,
"offset": 30
}
}
]
Playground Link:
Related Issues:
NinoScript, benevbright, axhamre and jciurc
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue