Files
kotlin-fork/compiler/testData/asJava/lightClasses/lightClassByPsi/valueClassInSignature.kt
T
Dmitrii Gridin e1c8b3d674 [SLC] avoid return type check for implicit types
we should avoid value class check in implicit return types
to avoid extra resolve

^KT-56046
^KT-55788
2023-02-03 19:49:03 +00:00

25 lines
616 B
Kotlin
Vendored

@JvmInline
value class Some(val value: String)
class RegularClass {
var classProp: Some = Some("1")
var classPropImplicit = Some("1")
var Some.classPropInExtension: Int
get() = 1
set(value) {}
fun classFunInReturn(): Some = Some("1")
fun classFunInImplicitReturn() = Some("1")
fun classFunInParameter(s: Some) {}
fun Some.classFunInExtension() {}
}
interface RegularInterface {
var interfaceProp: Some
var Some.interfacePropInExtension: Int
fun interfaceFunInReturn(): Some
fun interfaceFunInParameter(s: Some)
fun Some.interfaceFunInExtension()
}