Skip to content

Commit 795e09e

Browse files
committed
Test case for scala#1149
1 parent e8a36a1 commit 795e09e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/pending/pos/lazyvals.scala

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
trait Iterator {
4+
5+
def span() = {
6+
val self: Int = 33
7+
class Leading {
8+
def finish(): Unit = println("finished")
9+
}
10+
val leading = new Leading
11+
12+
class Trailing {
13+
@volatile lazy val it = leading.finish()
14+
}
15+
val trailing = new Trailing
16+
(leading, trailing)
17+
}
18+
}

0 commit comments

Comments
 (0)