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 d3383f6 commit 9831b97Copy full SHA for 9831b97
tests/init/neg/function-loop.scala
@@ -0,0 +1,6 @@
1
+class Foo {
2
+ val f: Int => Foo = (x: Int) => if x > 0 then f(x) else this
3
+ f(10).n
4
+
5
+ val n = 10 // error
6
+}
0 commit comments