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
pubfnmain() void {
vararr: [4]f32=undefined; // happens with any array type other than [16]f32arr=concat();
}
fnconcat() [16]f32 {
return [1]f32{0}**16;
}
Output:
Code Generation [129/453] std.debug.getLineNumberInfoDwarf...broken LLVM module found: Call parameter type does not match function signature!
%arr = alloca [4 x float], align 4
[16 x float]* call fastcc void @concat([4 x float]* sret %arr), !dbg !14628
Above should be a compile error.
But this should probably work (assigning to compatible slice type):
Output:
Above should be a compile error.
But this should probably work (assigning to compatible slice type):
But this one just outputs:
Actually, that was a bit hackneyed. Here is a more realistic use case (which should work but also segfaults).
The text was updated successfully, but these errors were encountered: