diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-04-17 21:46:46 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-04-17 21:46:46 +0200 |
commit | 4d60c901df4563536aa9bd153c5c4345e3d70a3a (patch) | |
tree | 8c462d1bde9566c1ca049ebebe58566e1b63fd43 /tests/pos/i480a.scala | |
parent | 85b48de299fcdba17397c59c9bcaa0a69da93350 (diff) | |
parent | 0b4e4cb7e71367752558fac29129f7e182d9206a (diff) | |
download | dotty-4d60c901df4563536aa9bd153c5c4345e3d70a3a.tar.gz dotty-4d60c901df4563536aa9bd153c5c4345e3d70a3a.tar.bz2 dotty-4d60c901df4563536aa9bd153c5c4345e3d70a3a.zip |
Merge pull request #486 from dotty-staging/fix/lambdaLift
Fix #480 in LambdaLift
Diffstat (limited to 'tests/pos/i480a.scala')
-rw-r--r-- | tests/pos/i480a.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pos/i480a.scala b/tests/pos/i480a.scala new file mode 100644 index 000000000..b388f6189 --- /dev/null +++ b/tests/pos/i480a.scala @@ -0,0 +1,15 @@ +package test + +/** A class defining symbols and types of standard definitions */ +class Definitions { + + trait LazyType { def complete(): Unit } + + def f(vcs: List[Int]): Unit = { + val completer = new LazyType { + def complete(): Unit = + for (i <- 0 until vcs.length if vcs(i) != 0) + f(vcs.updated(i, 0)) + } + } +} |