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

"Unsupported serializable type" with generics #67

Open
kvbc opened this issue Apr 6, 2023 · 0 comments
Open

"Unsupported serializable type" with generics #67

kvbc opened this issue Apr 6, 2023 · 0 comments

Comments

@kvbc
Copy link

kvbc commented Apr 6, 2023

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?

@kvbc kvbc changed the title Unsupported serializable type with generics "Unsupported serializable type" with generics Apr 6, 2023
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

1 participant