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 d393ff4 commit 41db96bCopy full SHA for 41db96b
tests/init/neg/leak-this.scala
@@ -1,5 +1,5 @@
1
class Parent {
2
- val child: Child = new Child(this)
+ val child: Child = new Child(this) // error
3
}
4
5
class Child(parent: Parent) {
0 commit comments