Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement virtuality and constructor restrictions #173

Closed
4 tasks done
LPTK opened this issue Jul 13, 2023 · 1 comment
Closed
4 tasks done

Implement virtuality and constructor restrictions #173

LPTK opened this issue Jul 13, 2023 · 1 comment
Assignees
Labels

Comments

@LPTK
Copy link
Contributor

LPTK commented Jul 13, 2023

  • allow fun and val members to be declared virtual; a signature without an implementation is considered virtual automatically
  • check that overridden funs and vals are virtual
  • forbid uses of this in constructors, including a class' initialization statements in the body and val RHSs
  • make an exception to the above for each final (ie non-virtual) member which either is a val or is a lazy val or a fun that doesn't itself transitively use this
@NeilKleistGao
Copy link
Member

I think all tasks are finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants