Skip to content

Commit 41db96b

Browse files
authored
Update leak-this.scala
1 parent d393ff4 commit 41db96b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/init/neg/leak-this.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class Parent {
2-
val child: Child = new Child(this)
2+
val child: Child = new Child(this) // error
33
}
44

55
class Child(parent: Parent) {

0 commit comments

Comments
 (0)