diff options
author | Eugene Burmako <burmako@epfl.ch> | 2011-11-29 15:25:45 +0000 |
---|---|---|
committer | Eugene Burmako <burmako@epfl.ch> | 2011-11-29 15:25:45 +0000 |
commit | ca37db37e944c05a35f435c6130a815bdead8604 (patch) | |
tree | 14565766f3da6dac66f96fc21e3eec606259d593 /test/files/pos | |
parent | 3e04761ce2f4cfb9cf02db0db49b18e84b2b3d2d (diff) | |
download | scala-ca37db37e944c05a35f435c6130a815bdead8604.tar.gz scala-ca37db37e944c05a35f435c6130a815bdead8604.tar.bz2 scala-ca37db37e944c05a35f435c6130a815bdead8604.zip |
Added the check against UnitClass in freeLocals...
Added the check against UnitClass in freeLocalsTraverser. Closes
SI-5245. Review by odersky.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t5245.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/pos/t5245.scala b/test/files/pos/t5245.scala new file mode 100644 index 0000000000..3a4b4d286e --- /dev/null +++ b/test/files/pos/t5245.scala @@ -0,0 +1,3 @@ +object Foo {
+ def bar = { var x = (); def foo() = x } +}
\ No newline at end of file |