aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i480a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/i480a.scala')
-rw-r--r--tests/pos/i480a.scala15
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))
+ }
+ }
+}