e1c8b3d674
we should avoid value class check in implicit return types to avoid extra resolve ^KT-56046 ^KT-55788
25 lines
616 B
Kotlin
Vendored
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()
|
|
}
|