Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/kt51844.kt
T
2022-05-09 19:23:43 +00:00

12 lines
376 B
Kotlin
Vendored

// WITH_STDLIB
abstract class Foo {
}
// ERROR: Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly
fun Foo.contains(vararg xs: Int) = xs.forEach(<!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM_ERROR, TYPE_MISMATCH!>this::<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>contains<!><!>)
fun box(): String {
return "OK"
}