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

Checkinit bit not set for fields of type unit in traits #8570

Closed
scabug opened this issue May 9, 2014 · 2 comments
Closed

Checkinit bit not set for fields of type unit in traits #8570

scabug opened this issue May 9, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented May 9, 2014

trait Trait40_1 {
  val value37_2 = ()
  def run = { value37_2 }
}

object Test {
  def main(args: Array[String]) {
    (new Trait40_1 {}).run
  }
}

fails after compiling with -Xcheckinit with "Uninitialized field: test.scala: 8"

@scabug
Copy link
Author

scabug commented May 9, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8570?orig=1
Reporter: @lrytz
See #8277, #4047

@scabug
Copy link
Author

scabug commented May 9, 2014

@retronym said:
See also #8277, #4047

@scabug scabug closed this as completed May 9, 2014
@scabug scabug added the mixin label Apr 7, 2017
@scabug scabug added this to the 2.11.1 milestone Apr 7, 2017
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