Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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