blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

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

Closed Pharmhaus-2 closed 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: leftnoodle

#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.

Pharmhaus-2 commented 5 years ago

Fix pushed by mark