initialDataFlowInfoForArguments introduced in CallExpressionResolver methods #KT-10175 Fixed
This commit is contained in:
+1
-1
@@ -9,5 +9,5 @@ fun <T> T.testThis(): String? {
|
||||
if (this != null) {
|
||||
return this<!UNNECESSARY_SAFE_CALL!>?.<!>toString()
|
||||
}
|
||||
return this?.toString()
|
||||
return <!DEBUG_INFO_CONSTANT!>this<!>?.toString()
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
fun Any?.foo(my: My) = my === this
|
||||
|
||||
class My(val x: Any)
|
||||
|
||||
// my is nullable in brackets because Any?.foo has nullable receiver
|
||||
fun foo(my: My?) = my?.x.foo(<!TYPE_MISMATCH!>my<!>)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ my: My?): kotlin.Boolean
|
||||
public fun kotlin.Any?.foo(/*0*/ my: My): kotlin.Boolean
|
||||
|
||||
public final class My {
|
||||
public constructor My(/*0*/ x: kotlin.Any)
|
||||
public final val x: kotlin.Any
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user