== turned into a safe-call
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
class Foo() {}
|
||||
|
||||
fun Any.equals(<!UNUSED_PARAMETER!>other<!> : Any?) : Boolean = true
|
||||
fun Any?.equals1(<!UNUSED_PARAMETER!>other<!> : Any?) : Boolean = true
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@@ -14,5 +13,6 @@ fun main(args: Array<String>) {
|
||||
// .equals(null) => 1; // must be resolved
|
||||
// ?.equals(null) => 1 // same here
|
||||
// }
|
||||
command.equals(null)
|
||||
command.equals1(null)
|
||||
command?.equals(null)
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package
|
||||
|
||||
internal fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
|
||||
internal fun kotlin.Any.equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
internal fun kotlin.Any?.equals1(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
internal final class Foo {
|
||||
|
||||
@@ -2,7 +2,6 @@ package
|
||||
|
||||
package kotlin {
|
||||
public fun </*0*/ reified T> arrayOfNulls(/*0*/ size: kotlin.Int): kotlin.Array<T?>
|
||||
public fun kotlin.Any?.equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public fun kotlin.Any?.identityEquals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public fun kotlin.String?.plus(/*0*/ other: kotlin.Any?): kotlin.String
|
||||
public fun kotlin.Any?.toString(): kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user