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

objects should override lazy values #5187

Open
scabug opened this issue Nov 14, 2011 · 2 comments
Open

objects should override lazy values #5187

scabug opened this issue Nov 14, 2011 · 2 comments

Comments

@scabug
Copy link

scabug commented Nov 14, 2011

Title says it all. Right now you cannot override a lazy val with an object. But I think you should be able to do this, or else you will be locked in forever in lazy vals.

@scabug
Copy link
Author

scabug commented Nov 14, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5187?orig=1
Reporter: @odersky

@scabug
Copy link
Author

scabug commented Nov 15, 2011

@paulp said:
Since we have objects overriding objects in -Xexperimental, then to complete the circuit one should also be able to override an object with a lazy val.

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

Successfully merging a pull request may close this issue.

5 participants