We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code cannot be built by WasmGC backend, but outputs K1(T1(12)) in Wasm backend.
K1(T1(12))
enum Test { T1(Int) T2 T3 } derive(Show) type K1 Test derive(Show) type K2 Test derive(Show) struct S { a : K1? b : K2? } derive(Show) fn meth(self : S) -> Unit { match self.a { Some(K1(T1(_)) as a) => println(a) Some(K1(T2)) => println("T2") } } test { let s = { a: Some(T1(12)), b: Some(T2) } s.meth() }
The code will be successfully compiled if we delete as a in Some(K1(T1(_)) as a) => println(a). Or it will report ICE:
as a
Some(K1(T1(_)) as a) => println(a)
Error: Moonc.Basic_hash_string.Key_not_found("$Test.K1")```
The text was updated successfully, but these errors were encountered:
Thanks for reporting the bug. We will have it fixed in the next release.
Sorry, something went wrong.
No branches or pull requests
The following code cannot be built by WasmGC backend, but outputs
K1(T1(12))
in Wasm backend.The code will be successfully compiled if we delete
as a
inSome(K1(T1(_)) as a) => println(a)
. Or it will report ICE:The text was updated successfully, but these errors were encountered: