AA: fix KtTypeProvider#getReceiverTypeForDoubleColonExpression
K1 version has used a wrong expression to retrieve the slice. K2 version mishandled property access as a receiver. ^KT-63195 fixed
This commit is contained in:
committed by
Space Team
parent
26bac388e8
commit
4110a9971a
+1
@@ -0,0 +1 @@
|
||||
fun test() = Int:<caret>:class
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: Int::class
|
||||
receiver:: type: kotlin.Int
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
interface MyInterface
|
||||
|
||||
fun test() = MyInterface:<caret>:class
|
||||
analysis/analysis-api/testData/components/typeInfoProvider/doubleColonReceiverType/getClass_type.txt
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
expression: MyInterface::class
|
||||
receiver:: type: MyInterface
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
interface MyInterface
|
||||
|
||||
fun test(x: MyInterface) = x:<caret>:class
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: x::class
|
||||
receiver:: type: MyInterface
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun test() = Number:<caret>:toInt
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: Number::toInt
|
||||
receiver:: type: kotlin.Number
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun test(a: Number) = a:<caret>:toInt
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: a::toInt
|
||||
receiver:: type: kotlin.Number
|
||||
Reference in New Issue
Block a user