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

Wrong C++ generated with first class function in collection and a struct parameter #471

Open
leftnoodle opened this issue Feb 21, 2019 · 2 comments

Comments

@leftnoodle
Copy link

leftnoodle commented Feb 21, 2019

#Import "<std>"

Using std.collections

Struct Event

	Field data : Int

End Struct

Alias EventCb : Void( event : Event )

Function Main()

	Local dict : StringMap< EventCb > = New StringMap< EventCb >()

End Function

Using the above code, the wrong C++ code is generated. Works fine when Event is a class.

@blitz-research
Copy link
Owner

blitz-research commented Feb 23, 2019 via email

@D-a-n-i-l-o
Copy link
Contributor

Works fine, thanks. Issue could be closed.

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