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

REPL crash in specialization with by-name #9089

Closed
scabug opened this issue Jan 14, 2015 · 2 comments
Closed

REPL crash in specialization with by-name #9089

scabug opened this issue Jan 14, 2015 · 2 comments

Comments

@scabug
Copy link

scabug commented Jan 14, 2015

This succeeds the first time and nth time for odd n. For some reason, my local trunk version fails oddly and succeeds evenly, and therefore fails t6434. (Scala code runner version 2.11.5-20150114-114721-b7adf1929e.)

$ 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 = x
f: (x: => Int)Int

scala> def f(x: => Int): Int = x
java.lang.AssertionError: assertion failed: List(method apply$mcI$sp, method apply$mcI$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)

@scabug
Copy link
Author

scabug commented Jan 14, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9089?orig=1
Reporter: @som-snytt
Affected Versions: 2.11.5
Duplicates #9022

@scabug
Copy link
Author

scabug commented Jan 15, 2015

@retronym said (edited on Jan 15, 2015 2:59:28 AM UTC):
scala/scala#4249

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

No branches or pull requests

2 participants