"contains" now requires to be marked as operator + no heuristic signature for contains needed anymore
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
interface X<T>
|
||||
|
||||
fun<T> X<T>.contains(t: T): Boolean
|
||||
operator fun<T> X<T>.contains(t: T): Boolean = true
|
||||
|
||||
interface A {
|
||||
fun<T> createX(t: T): X<T>
|
||||
|
||||
Reference in New Issue
Block a user