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
case 1 is how the code should behave, which is correct. it produces an error that the types are invalid.
case 2 is the minimal working example for this error. this should fail to compile, but it does not. instead this is shown:
Call parameter type does not match function signature!
%12 = getelementptr inbounds %A, %A* %res, i32 0, i32 0, !dbg !14122
{ %"[]i32", i16 }* call fastcc void @std.mem.Allocator.alloc.154(%"[]i32"* sret %12, %builtin.StackTrace* %0, %std.mem.Allocator* @direct_allocator_state, i64 2), !dbg !14123
LLVM ERROR: Broken module found, compilation aborted!
case 3 also behaves correctly though. does not compile, because of differing types. (both error-type-unions behave the same way. i dont know if this may be specific to the errors-unions specified by the alloc function)
case 4 also behaves the way it should. does not compile due to type incompatibility.
zig version: 0.4.0+cf4bccf7 (from snap package) on linux x86_64.
The text was updated successfully, but these errors were encountered:
andrewrk
added
bug
Observed behavior contradicts documented or intended behavior
stage1
The process of building from source via WebAssembly and the C backend.
labels
Sep 20, 2019
case 1 is how the code should behave, which is correct. it produces an error that the types are invalid.
case 2 is the minimal working example for this error. this should fail to compile, but it does not. instead this is shown:
case 3 also behaves correctly though. does not compile, because of differing types. (both error-type-unions behave the same way. i dont know if this may be specific to the errors-unions specified by the alloc function)
case 4 also behaves the way it should. does not compile due to type incompatibility.
zig version:
0.4.0+cf4bccf7
(from snap package) on linux x86_64.The text was updated successfully, but these errors were encountered: