Files
kotlin-fork/compiler/testData/asJava/lightClasses/lightClassByPsi/facades/valueClassInSignature.kt
T
Dmitriy Novozhilov faa96ec7c0 [AA LC] Don't create light methods if value class is present in signature
^KT-55788

Test `parameter_jvmInline.kt` is removed because now members with value
  classes are not included in light classes and don't have PSI representation
2023-01-12 17:45:10 +00:00

34 lines
782 B
Kotlin
Vendored

@JvmInline
value class Some(val value: String)
var topLevelProp: Some = Some("1")
var Some.topLevelPropInExtension: Int
get() = 1
set(value) {}
fun topLevelFunInReturn(): Some = Some("1")
fun topLevelFunInParameter(s: Some) {}
fun Some.topLevelFunInExtension() {}
class SomeClass {
var memberProp: Some = Some("1")
var Some.memberPropInExtension: Int
get() = 1
set(value) {}
fun memberFunInReturn(): Some = Some("1")
fun memberFunInParameter(s: Some) {}
fun Some.memberFunInExtension() {}
}
interface SomeInterface {
var memberProp: Some
var Some.memberPropInExtension: Int
get() = 1
set(value) {}
fun memberFunInReturn(): Some
fun memberFunInParameter(s: Some)
fun Some.memberFunInExtension()
}