diff options
author | Martin Odersky <odersky@gmail.com> | 2015-04-17 20:13:38 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-17 21:32:05 +0200 |
commit | 0b4e4cb7e71367752558fac29129f7e182d9206a (patch) | |
tree | 8c462d1bde9566c1ca049ebebe58566e1b63fd43 /tests/pos/i342.scala | |
parent | b0b690285bf46ba7e4df91e131bff6921430be48 (diff) | |
download | dotty-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.scala | 10 |
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 + } +} |