[AA] include inferred types in functional exp expected type
Fixed for K2 only, k1 remains as is ^KT-62466 fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
expression: {
|
||||
s: String -> 0
|
||||
}
|
||||
expected type: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: [
|
||||
KtTypeParameterType:
|
||||
annotationsList: []
|
||||
type: T
|
||||
]
|
||||
type: java/lang/Comparable<T>
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun <K> test(f: java.lang.Comparable<K>) {}
|
||||
|
||||
fun f() {
|
||||
test(java.lang.Comparable {<caret>
|
||||
s: String -> 0
|
||||
})
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
expression: {
|
||||
s: String -> 0
|
||||
}
|
||||
expected type: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: [
|
||||
KtFlexibleType:
|
||||
annotationsList: []
|
||||
type: kotlin/String!
|
||||
]
|
||||
type: java/lang/Comparable<kotlin/String!>
|
||||
Reference in New Issue
Block a user