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

liftcode's free locals traverser crashes on reference to mutable var of type Unit #5245

Closed
scabug opened this issue Nov 29, 2011 · 2 comments
Assignees

Comments

@scabug
Copy link

scabug commented Nov 29, 2011

scala> def bar = { var x = () ; def foo() = x}
java.util.NoSuchElementException: key not found: class Unit
	at scala.collection.MapLike$class.default(MapLike.scala:222)
	at scala.collection.AbstractMap.default(Map.scala:57)
	at scala.collection.MapLike$class.apply(MapLike.scala:135)
	at scala.collection.AbstractMap.apply(Map.scala:57)
	at scala.tools.nsc.transform.LiftCode$Codifier$$anon$1$$anonfun$traverse$5.refType$1(LiftCode.scala:174)
@scabug
Copy link
Author

scabug commented Nov 29, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5245?orig=1
Reporter: @adriaanm

@scabug scabug closed this as completed Nov 29, 2011
@scabug
Copy link
Author

scabug commented Nov 29, 2011

Commit Message Bot (anonymous) said:
(burmako in r26087) Added the check against UnitClass in freeLocalsTraverser.
Closes #5245. Review by odersky.

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

No branches or pull requests

2 participants