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
INSERT$ rock tuple
/home/housezet/complier/bug/tuple.ooc: In function ‘tuple__foo’:
/home/housezet/complier/bug/tuple.ooc:2:23: error: ‘i’ redeclared as different kind of symbol
(a, i) := ("test", 2)
^
rock_tmp/ooc/tuple/tuple.c:43:48: note: previous definition of ‘i’ was here
lang_Numbers__Int tuple__foo(lang_Numbers__Int i) {
^
/home/housezet/complier/bug/tuple.ooc:2:26: warning: unused variable ‘a’ [-Wunused-variable]
(a, i) := ("test", 2)
^
C compiler failed on module tuple from tuple, bailing out
[FAIL]
but this works even though it may not output correctly:
i: Int = 1
(a, i) := (1, 2)
i toString() println()
This prints 1 instead 2 beacuse a new variable tuple_i is generated (but can never be used, of course).
The text was updated successfully, but these errors were encountered:
When trying to compile something like this:
rock generates:
and finally:
but this works even though it may not output correctly:
This prints
1
instead2
beacuse a new variabletuple_i
is generated (but can never be used, of course).The text was updated successfully, but these errors were encountered: