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
That's probably a compiler error that results in a silly error message:
method Base(Cell)#b must return (Base(Cell) | Nil) but it is returning Cell
where Cell actually has exactly this definition.
# double recursionclassBase(T)
defa : T
b # calls the method that returns T|Nilenddefb : T|Nil# Error: method Base(Cell)#b must return (Base(Cell) | Nil) but it is returning Cell
a
endendaliasCell=Base(Cell)|Nil# recursion needed, Nil neededBase(Cell).new.a # needs to call the method which returns T
That's probably a compiler error that results in a silly error message:
method Base(Cell)#b must return (Base(Cell) | Nil) but it is returning Cell
where Cell actually has exactly this definition.
I'm running
on Ubuntu 18.04
The text was updated successfully, but these errors were encountered: