Skip to content

No error when overriding getter with a const #4

@JukkaL

Description

@JukkaL

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions