KT-64993 [AA] Add test case for expected type in unsafe call arg
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
expression: arg
|
||||
expected type: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/String
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
fun bar(y: String) {}
|
||||
}
|
||||
|
||||
fun x(foo: Foo?) {
|
||||
foo?.bar(<caret>arg)
|
||||
}
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: arg
|
||||
expected type: null
|
||||
Reference in New Issue
Block a user