Release note.

52 views
Skip to first unread message

Som Snytt

unread,
Jan 14, 2015, 6:38:43 PM1/14/15
to scala-internals
This is possibly somewhat limiting:

https://issues.scala-lang.org/browse/SI-9089

We may be in need of another REPL Bug Bonanza. Cue burning map of Ponderosa.

$ scala
Welcome to Scala version 2.11.5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

scala> def f(x: Int => Int): Int = x(7)
f: (x: Int => Int)Int

scala> def f(x: Int => Int): Int = x(7)
java.lang.AssertionError: assertion failed: List(method apply$mcII$sp, method apply$mcII$sp)
    at scala.reflect.internal.Symbols$Symbol.suchThat(Symbols.scala:1916)
    at scala.tools.nsc.transform.SpecializeTypes$$anon$2.matchingSymbolInPrefix$1(SpecializeTypes.scala:1460)
    at scala.tools.nsc.transform.SpecializeTypes$$anon$2.transformSelect$1(SpecializeTypes.scala:1483)
    at scala.tools.nsc.transform.SpecializeTypes$$anon$2.transform1(SpecializeTypes.scala:1579)

Reply all
Reply to author
Forward
0 new messages