Skip to content

"Unsupported serializable type" with generics #67

Description

@kvbc

The following code compiles with an error: "Unsupported serializable type Test.T", even though the type T is constrained as Serializable
Compiled with haxe -m Main -lib hxbit --interp

// file "Main.hx"
package;

class Test<T: hxbit.Serializable> implements hxbit.Serializable {
    @:s public var test: T;
}

class Main {
    static public function main () {}
}

Is what I'm trying to achieve possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions