jarkonik/rocklang

Passing new vecs as args in one line doesnt work

Closed this issue · 0 comments

f = (v: vec): void => {}
f(vecnew())

results in

Call parameter type does not match function signature!
  %vecnew = call double* inttoptr (i64 94312092171168 to double* ()*)()
 double**  call void @fun(double* %vecnew)
LLVM ERROR: Broken function found, compilation aborted!