aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i342.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-17 20:13:38 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-17 21:32:05 +0200
commit0b4e4cb7e71367752558fac29129f7e182d9206a (patch)
tree8c462d1bde9566c1ca049ebebe58566e1b63fd43 /tests/pos/i342.scala
parentb0b690285bf46ba7e4df91e131bff6921430be48 (diff)
downloaddotty-0b4e4cb7e71367752558fac29129f7e182d9206a.tar.gz
dotty-0b4e4cb7e71367752558fac29129f7e182d9206a.tar.bz2
dotty-0b4e4cb7e71367752558fac29129f7e182d9206a.zip
Fix #342 Lambda lift idents need to get new prefix
Idents of lifted symbols become class members, need to carry the right reference with the right prefix as type.
Diffstat (limited to 'tests/pos/i342.scala')
-rw-r--r--tests/pos/i342.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/i342.scala b/tests/pos/i342.scala
new file mode 100644
index 000000000..bb57bae8e
--- /dev/null
+++ b/tests/pos/i342.scala
@@ -0,0 +1,10 @@
+object Test {
+ def test2: Int = {
+ var ds: String = null
+ def s = {
+ ds = "abs"
+ ds
+ }
+ s.length
+ }
+}