HaxeFoundation / HaxeFoundation/haxe

Abstract class name clash error

Open
#5,815 2 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

If you have in Test.hx
```haxe
abstract Test(_Test) {
public static var a = 2;
}
class _Test {}
```
You'll get the error message:
```
Test.hx:1: lines 1-4 : This private class name will clash with _Test
```
which isn't very explicit.

Also doesn't happen if the abstract isn't the main type of the module.

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.