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
I'm getting an error when I compile this small program.
Use of undeclared identifier 'res' and I don't undertand why.
class Main
class Foo
def getBar(): Bar {
new Bar
}
def foo(): Bar {
let res = new Bar
in {
let foo = new Foo
v = get foo.getBar()
in () ;
res
}
}
passive class Bar
x: real
y: real
I checked the generated C code and the variable res is declared as '_res_1' and used in the return expression as 'res'
Bar_data* _res_1 = _new_0;
... some code here ...
return res;
Thanks
The text was updated successfully, but these errors were encountered:
I'm getting an error when I compile this small program.
Use of undeclared identifier 'res' and I don't undertand why.
I checked the generated C code and the variable res is declared as '_res_1' and used in the return expression as 'res'
Bar_data* _res_1 = _new_0;
... some code here ...
return res;
Thanks
The text was updated successfully, but these errors were encountered: