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
Closed
Assignees

Comments

@scabug
Copy link

@scabug 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

This comment has been minimized.

Copy link
Author

@scabug scabug commented Nov 29, 2011

@scabug scabug closed this Nov 29, 2011
@scabug

This comment has been minimized.

Copy link
Author

@scabug 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.