KT-64808 [stubs] Add extra tests for synthethic declarations from data and value classes
It's not related to the stubs format changes, but there were no tests for that in symbols resolve tests
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: Lib.kt
|
||||
package one
|
||||
|
||||
data class DataClass(val name: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
fun usage(instance: one.DataClass) {
|
||||
instance.<caret>component1()
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
operator fun component1(): kotlin.String
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: one/DataClass.component1
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isActual: false
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExpect: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: true
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: FINAL
|
||||
name: component1
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/String
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: one/DataClass
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.DataClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: Lib.kt
|
||||
package one
|
||||
|
||||
data class DataClass(val name: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
fun usage(instance: one.DataClass) {
|
||||
instance.<caret>copy()
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun copy(name: kotlin.String): one.DataClass
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: one/DataClass.copy
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isActual: false
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExpect: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: FINAL
|
||||
name: copy
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: one/DataClass
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: [
|
||||
KtValueParameterSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: null
|
||||
contextReceivers: []
|
||||
generatedPrimaryConstructorProperty: null
|
||||
hasDefaultValue: true
|
||||
isCrossinline: false
|
||||
isExtension: false
|
||||
isImplicitLambdaParameter: false
|
||||
isNoinline: false
|
||||
isVararg: false
|
||||
name: name
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/String
|
||||
symbolKind: LOCAL
|
||||
typeParameters: []
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.DataClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
]
|
||||
visibility: Public
|
||||
getDispatchReceiver(): KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: one/DataClass
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.DataClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: Lib.kt
|
||||
package one
|
||||
|
||||
data class DataClass(val name: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
fun usage(instance: one.DataClass) {
|
||||
instance.<caret>equals(instance)
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
open operator fun equals(other: kotlin.Any?): kotlin.Boolean
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: one/DataClass.equals
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isActual: false
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExpect: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: true
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: OPEN
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Boolean
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: [
|
||||
KtValueParameterSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: null
|
||||
contextReceivers: []
|
||||
generatedPrimaryConstructorProperty: null
|
||||
hasDefaultValue: false
|
||||
isCrossinline: false
|
||||
isExtension: false
|
||||
isImplicitLambdaParameter: false
|
||||
isNoinline: false
|
||||
isVararg: false
|
||||
name: other
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Any?
|
||||
symbolKind: LOCAL
|
||||
typeParameters: []
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.DataClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
]
|
||||
visibility: Public
|
||||
getDispatchReceiver(): KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: one/DataClass
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.DataClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: Lib.kt
|
||||
package one
|
||||
|
||||
data class DataClass(val name: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
fun usage(instance: one.DataClass) {
|
||||
instance.<caret>hashCode()
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
open fun hashCode(): kotlin.Int
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: one/DataClass.hashCode
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isActual: false
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExpect: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: OPEN
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Int
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: one/DataClass
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.DataClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: Lib.kt
|
||||
package one
|
||||
|
||||
data class DataClass(val name: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
fun usage(instance: one.DataClass) {
|
||||
instance.<caret>toString()
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
open fun toString(): kotlin.String
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: one/DataClass.toString
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isActual: false
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExpect: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: OPEN
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/String
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: one/DataClass
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.DataClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: Lib.kt
|
||||
package one
|
||||
|
||||
@JvmInline
|
||||
value class ValueClass(val name: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
fun usage(instance: one.ValueClass) {
|
||||
instance.<caret>equals(instance)
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
open operator fun equals(other: kotlin.Any?): kotlin.Boolean
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: one/ValueClass.equals
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isActual: false
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExpect: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: true
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: OPEN
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Boolean
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: [
|
||||
KtValueParameterSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: null
|
||||
contextReceivers: []
|
||||
generatedPrimaryConstructorProperty: null
|
||||
hasDefaultValue: false
|
||||
isCrossinline: false
|
||||
isExtension: false
|
||||
isImplicitLambdaParameter: false
|
||||
isNoinline: false
|
||||
isVararg: false
|
||||
name: other
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Any?
|
||||
symbolKind: LOCAL
|
||||
typeParameters: []
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.ValueClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
]
|
||||
visibility: Public
|
||||
getDispatchReceiver(): KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: one/ValueClass
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.ValueClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: Lib.kt
|
||||
package one
|
||||
|
||||
@JvmInline
|
||||
value class ValueClass(val name: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
fun usage(instance: one.ValueClass) {
|
||||
instance.<caret>hashCode()
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
open fun hashCode(): kotlin.Int
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: one/ValueClass.hashCode
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isActual: false
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExpect: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: OPEN
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Int
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: one/ValueClass
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.ValueClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: Lib.kt
|
||||
package one
|
||||
|
||||
@JvmInline
|
||||
value class ValueClass(val name: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
fun usage(instance: one.ValueClass) {
|
||||
instance.<caret>toString()
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
open fun toString(): kotlin.String
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: one/ValueClass.toString
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isActual: false
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExpect: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: OPEN
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/String
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: one/ValueClass
|
||||
getContainingFileSymbol: null
|
||||
getContainingJvmClassName: one.ValueClass
|
||||
getContainingModule: KtLibraryModule "Library lib"
|
||||
deprecationStatus: null
|
||||
Reference in New Issue
Block a user