You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry in advance if this is disallowed, but the following crashes when the field is object-private:
packageeyeshadowtraitA {
defa:Int
}
objectTest {
deff(a: Int) =new {
//private val b = aprivate[this] valb= a // crashes, sorry scalac
} withA {
defa= b
}
defmain(args: Array[String]) {
println(f(7).a)
}
}
There is a failed assert
at scala.tools.nsc.transform.Constructors$ConstructorTransformer$$anonfun$transformClassTemplate$1.apply(Constructors.scala:160)
or assert(fields.length == 1)
The text was updated successfully, but these errors were encountered:
Sorry in advance if this is disallowed, but the following crashes when the field is object-private:
There is a failed assert
at scala.tools.nsc.transform.Constructors$ConstructorTransformer$$anonfun$transformClassTemplate$1.apply(Constructors.scala:160)
or
assert(fields.length == 1)
The text was updated successfully, but these errors were encountered: