HaxeFoundation / HaxeFoundation/haxe

Wrong error when importing non existing subtype

Open
#10,897 3 comments 0 reactions 0 assignees View on GitHub
test-disabled
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

> Main.hx
```haxe
import Types.Baz;
```

> Types.hx
```haxe
enum Bar {}
```

```
$ haxe Main
Main.hx:1: characters 8-13 : Module Types does not define type Types
```

Here it's ok that `Types.hx` does not define type `Types`, but the error should complain about `Bar` vs `Baz` 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.