It is possible to override a getter using a const member. This should result in a compile error. Example (no errors reported by the interpreter):
class A
def d
end
end
class B is A
const d -- Should be an error but isn't
end
Note that the type checker reports this correctly (when using alore -c).
It is possible to override a getter using a const member. This should result in a compile error. Example (no errors reported by the interpreter):
Note that the type checker reports this correctly (when using
alore -c).