Revert "[FE 1.0] Take care callable reference candidates with recursive candidate return type"
This reverts commit d04beaa8bb49c99ceb993f3f7b32169c393b39f4.
This commit is contained in:
committed by
teamcity
parent
06deaed3d5
commit
51551998c7
@@ -1,15 +0,0 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
abstract class Foo {
|
||||
abstract fun contains(x: Int);
|
||||
}
|
||||
|
||||
// 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(this::contains)
|
||||
|
||||
fun box(): String {
|
||||
object : Foo() {
|
||||
override fun contains(x: Int) {}
|
||||
}.contains(1)
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user