Skip to content

Commit 078f6c0

Browse files
committed
Test case
1 parent 5e05d3f commit 078f6c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/pos/capturing.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class MT(sf: MT => String) {
2+
// `s` is retained as a field, but `sf` should not be.
3+
val s = sf(this)
4+
}

0 commit comments

Comments
 (0)