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

ListSet - Too many arguments #46

Open
guifes opened this issue Nov 10, 2019 · 4 comments
Open

ListSet - Too many arguments #46

guifes opened this issue Nov 10, 2019 · 4 comments

Comments

@guifes
Copy link

guifes commented Nov 10, 2019

/usr/local/lib/haxe/lib/polygonal-ds/2,1,1/src/polygonal/ds/ListSet.hx:332: characters 24-25 : Too many arguments

Building with Haxe 4.0.2 for pretty much all targets.

@nanjizal
Copy link

Could be related to:

https://github.com/HaxeFoundation/haxe/wiki/Breaking-changes-in-Haxe-4.0.0#static-extension-restrictions

try:

        public function toArray():Array<T>
	{
		return NativeArrayTools.toArray( mData, 0, size, [] );
	}

@guifes
Copy link
Author

guifes commented Nov 10, 2019

Could be related to:

https://github.com/HaxeFoundation/haxe/wiki/Breaking-changes-in-Haxe-4.0.0#static-extension-restrictions

try:

        public function toArray():Array<T>
	{
		return NativeArrayTools.toArray( mData, 0, size, [] );
	}

It worked using this!

@polygonal
Copy link
Owner

Works for me (4.0.2), can you provide a minimal reproducible example?

@guifes
Copy link
Author

guifes commented Nov 13, 2019

So, I was trying to come up with an simple project that could replicate the problem, but I'm having a hard time narrowing down where it's coming from.

My project is a game made with flixel, but the problem seems to be in an ECS lib I created that is used by the project. The specifc branch of the lib source I'm using to test is:

https://github.com/guifes/entithax/tree/feature/polygonal-update

I created a simple flixel project that replicates the problem. For it to work you'll have to clone the lib and reference it in haxelib

Bug.zip

lime test hl
to run the project

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

3 participants