You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem. What did you see? What did you expect to see?
A generic enum whose variants include generic structs with the same parameter triggers a ton of "incomplete type" errors during C compilation, as either they don't point to the right struct monomorphs or the struct monomorphs were never created.
If this is a code issue, provide a minimal code example:
struct Struct[A] {
var value: A;
}
enum Enum[A] {
Variant(a: Struct[A]);
}
function main() {
var e: Enum[Int];
puts("hi");
}
Error: In file included from build/lib/kit_main.c:1:0:
build/include/main.h:151:50: error: field ‘a’ has incomplete type
struct test_Struct__2a867e0193ff634180614473 a;
^
cc1: warning: unrecognized command line option ‘-Wno-shift-op-parentheses’
The text was updated successfully, but these errors were encountered:
Describe the problem. What did you see? What did you expect to see?
A generic enum whose variants include generic structs with the same parameter triggers a ton of "incomplete type" errors during C compilation, as either they don't point to the right struct monomorphs or the struct monomorphs were never created.
If this is a code issue, provide a minimal code example:
The text was updated successfully, but these errors were encountered: