Files
codeql/java/ql/test/kotlin/library-tests/recursive-instantiations/stack-overflow-2/stackOverflow.kt
Ian Lynagh 2551bb58da Kotlin: Add a test of recursive instantiations
This used to cause a stack overflow
2022-05-10 19:51:21 +01:00

15 lines
235 B
Kotlin

class MyClass() {
fun f1() {
fun f2() {
class SomeClass {
}
val ml = mutableListOf<SomeClass>()
for (x in ml) {
}
}
}
}