We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e05d3f commit 078f6c0Copy full SHA for 078f6c0
tests/pos/capturing.scala
@@ -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