[AA] add more tests on java field symbols

^KT-54311
This commit is contained in:
Dmitrii Gridin
2022-11-04 15:19:06 +01:00
committed by Space Team
parent 137deadee5
commit 42f8e6fbe6
13 changed files with 255 additions and 0 deletions
@@ -0,0 +1 @@
var field: kotlin.Int
@@ -0,0 +1,18 @@
KtJavaFieldSymbol:
annotationsList: []
callableIdIfNonLocal: /JavaClass.field
contextReceivers: []
isExtension: false
isStatic: false
isVal: false
modality: FINAL
name: field
origin: JAVA
receiverType: null
returnType: kotlin/Int
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
getDispatchReceiver(): JavaClass
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -0,0 +1,11 @@
// DO_NOT_CHECK_SYMBOL_RESTORE_K1
// FILE: main.kt
fun some() {
val jClass = JavaClass()
jClass.<caret>field;
}
// FILE: JavaClass.java
public class JavaClass {
public int field = 1;
}
@@ -0,0 +1 @@
open var field: kotlin.Int
@@ -0,0 +1,18 @@
KtJavaFieldSymbol:
annotationsList: []
callableIdIfNonLocal: /JavaClass.field
contextReceivers: []
isExtension: false
isStatic: false
isVal: false
modality: OPEN
name: field
origin: JAVA
receiverType: null
returnType: kotlin/Int
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
getDispatchReceiver(): JavaClass
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null