Skip to content

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

Open
@leftnoodle

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions