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
V version: V 0.2.2 0da827f.adffae4 OS: linux, Ubuntu 20.04.2 LTS (WSL 2)
What did you do? a.v
modulemainfna() int {
f:=fn (i int) int {
return i
}
returnf(1)
}
b.v
modulemainfnb() int {
f:=fn (i int) int {
return i
}
returnf(1)
}
fnmain() {
println(a())
println(b())
}
What did you expect to see?
Successful compilation
What did you see instead?
==================
/tmp/v/test_project.7116915371345699856.tmp.c:1620: error: redefinition of 'anon_fn_int__int_47'
...
==================
(Use `v -cg` to print the entire error message)
builder error:
==================
C error. This should never happen.
If you were not working with C interop, this is a compiler bug, please report the bug using `v bug file.v`.
https://github.com/vlang/v/issues/new/choose
You can also use #help on Discord: https://discord.gg/vlang
V version: V 0.2.2 0da827f.adffae4
OS: linux, Ubuntu 20.04.2 LTS (WSL 2)
What did you do?
a.v
b.v
What did you expect to see?
Successful compilation
What did you see instead?
Details
See vlib/v/parser/fn.v
The text was updated successfully, but these errors were encountered: