Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module field regression #11385

Closed
Simn opened this issue Nov 17, 2023 · 0 comments
Closed

Module field regression #11385

Simn opened this issue Nov 17, 2023 · 0 comments
Assignees

Comments

@Simn
Copy link
Member

Simn commented Nov 17, 2023

#11168 caused a regression which went unnoticed until now:

// Main.hx
import LibraryData;

function main() {
	LibraryData.isCommitHash();
}
// LibraryData.hx
class LibraryData  {

}

function isCommitHash() {
	trace("Hello World");
}

The resulting dump:

[Call:Void]
	[Field:() -> Void]
		[TypeExpr pack.LibraryData:Class<pack.LibraryData>]
		[FStatic:() -> Void]
			pack._LibraryData.LibraryData_Fields_
			isCommitHash:() -> Void;

The problem here is that the TypeExpr has the wrong path. This is what currently makes haxelib implode.

@Simn Simn self-assigned this Nov 17, 2023
@Simn Simn closed this as completed in f8b8a01 Nov 17, 2023
kLabz pushed a commit to kLabz/haxe that referenced this issue Nov 17, 2023
0b1kn00b pushed a commit to 0b1kn00b/haxe that referenced this issue Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant