[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
This commit is contained in:
committed by
Space Team
parent
e1c2ca1bbf
commit
e1c8b3d674
+5
-5
@@ -1,15 +1,15 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
|
||||
@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() {}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ interface RegularInterface {
|
||||
var interfaceProp: Some
|
||||
var Some.interfacePropInExtension: Int
|
||||
|
||||
fun interfaceFunInReturn(): Some = Some("1")
|
||||
fun interfaceFunInParameter(s: Some) {}
|
||||
fun Some.interfaceFunInExtension() {}
|
||||
fun interfaceFunInReturn(): Some
|
||||
fun interfaceFunInParameter(s: Some)
|
||||
fun Some.interfaceFunInExtension()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user