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
Compiler crash in 2.10.1-RC2 (regression) #7223
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7223?orig=1
|
@retronym said: |
Andreas W (andreasw) said (edited on Mar 7, 2013 4:55:53 PM UTC): Please let me know if this works for you! package scala.crash
class A {
class A1 {
case class A11(i: Int, j: Int) {
lazy val a11: Option[C] = null
}
class A12(f: (Int, Int)=>A11) extends
D((i, j, id, rep) => {
for (x <- Some(f(i, j)); s<-x.a11) yield new B.B1(x.i, x.j) {}
})
}
}
object B {
class B1(val row: Int, val col: Int)
extends C
{
val b1: C = null
}
}
trait C {
}
class D[T](t: (Int, Int, Int, Int)=>Option[T]) {
} |
Andreas W (andreasw) said (edited on Mar 7, 2013 4:56:27 PM UTC): class A1 {
...
def ff(f: (Int, Int)=>A11): (Int, Int, Int, Int)=>Option[B.B1] =
(i, j, id, rep) => {
for (x <- Some(f(i, j)); s<-x.a11) yield new B.B1(x.i, x.j) {}
}
class A12(f: (Int, Int)=>A11) extends D(ff(f))
} That averted the crash. |
@retronym said: package scala.crash
class A {
class A1 {
case class A11(i: Int, j: Int) {
lazy val a11: Option[C] = null
}
class A12(f: (Int, Int)=>A11) extends
D(toF4(f))
def toF4(f: (Int, Int)=>A11) = (i: Int, j: Int, id: Int, rep: Int) => {
for (x <- Some(f(i, j)); s<-x.a11) yield new B.B1(x.i, x.j) {}
}
}
}
object B {
class B1(val row: Int, val col: Int)
extends C
{
val b1: C = null
}
}
trait C {
}
class D[T](t: (Int, Int, Int, Int)=>Option[T]) {
} |
@retronym said: package scala.crash
object Crash extends D(() => {
(x: Int) => {() => { new { x.toString } }}
})
class D(a: Any) |
@adriaanm said: |
@JamesIry said: |
@retronym said: |
Compiler crashes on my project, with "no-symbol does not have an owner". Happens both in IDE and SBT. 2.10.0-RC2 is fine, 2.10.1-RC2 is not. I have attached the "last" output from SBT. This was previously discussed in #6921, but I was asked to open a new issue, so here it is...
The text was updated successfully, but these errors were encountered: