[K/N][Tests] Migrate framework and objcexport tests
^KT-61259
This commit is contained in:
committed by
Space Team
parent
f00a145dd7
commit
025771460c
+31
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
package dataClassComponentMethods
|
||||
|
||||
data class DataClassWithExplicitComponentMethod(val x: Int, val y: Int) {
|
||||
fun component1(arg: Int): Int {
|
||||
return arg + x
|
||||
}
|
||||
}
|
||||
|
||||
interface ComponentInterface {
|
||||
fun component1(): Int
|
||||
}
|
||||
|
||||
data class DataClassWithInheritedComponentMethod(val x: Int) : ComponentInterface
|
||||
|
||||
class RegularClassWithComponentMethods {
|
||||
fun component1() = 3
|
||||
fun component3() = 4
|
||||
}
|
||||
|
||||
fun component1() = 5
|
||||
fun component4() = 6
|
||||
|
||||
data class DataClassWithStrangeNames(val component124: Int, val componentABC: Int) {
|
||||
operator fun component15() = component124
|
||||
fun component16() = component124
|
||||
}
|
||||
Reference in New Issue
Block a user