HaxeFoundation / HaxeFoundation/haxe

Incorrect reported position for deprecation + inline

Open
#9,864 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.