HaxeFoundation / HaxeFoundation/haxe
Incorrect reported position for deprecation + inline
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
v4.1.3
```haxe
class Main {
public static function main() {
foo();
}
static inline function foo() {
untyped __js__('boom');
}
}
```
The following warning points at the callsite. But should be at the body of foo(), the actual usage of the deprecated api.
```
src/Main.hx:3: characters 9-14 : Warning : __js__ is deprecated, use js.Syntax.code instead
```
Contributor guide
Assessment
This issue has not been assessed yet.