HaxeFoundation / HaxeFoundation/haxe
[display] inconsistent go to definition behavior with `import as`
Open
bug
feature-ide
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
```haxe
import haxe.Json as Jason;
class Main {
static function main() {
var j:Jason;
Jason;
}
}
```
When invoking go to definition on the type hint, it takes you to the `import` statement. However, when invoking it on the expression in the line below, it takes you to `Json.hx`.
I think the behavior should be consistent here (preferably taking you to the import in both cases).
Contributor guide
Assessment
This issue has not been assessed yet.