f283f2db43
Also introduce few new diagnostics: - NONE_APPLICABLE more many inapplicable candidates - HIDDEN for visible candidates
33 lines
517 B
Kotlin
Vendored
33 lines
517 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
class A() {
|
|
override fun equals(other : Any?) : Boolean = false
|
|
}
|
|
|
|
fun f(): Unit {
|
|
var x: Int? = 1
|
|
x = null
|
|
x <!NONE_APPLICABLE!>+<!> 1
|
|
x <!NONE_APPLICABLE!>plus<!> 1
|
|
x <!NONE_APPLICABLE!><<!> 1
|
|
<!UNRESOLVED_REFERENCE!>x += 1<!>
|
|
|
|
x == 1
|
|
x != 1
|
|
|
|
A() == 1
|
|
|
|
x === "1"
|
|
x !== "1"
|
|
|
|
x === 1
|
|
x !== 1
|
|
|
|
x<!NONE_APPLICABLE!>..<!>2
|
|
x <!INAPPLICABLE_CANDIDATE!>in<!> 1..2
|
|
|
|
val y : Boolean? = true
|
|
false || y
|
|
y && true
|
|
y && 1
|
|
}
|