[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:
Dmitrii Gridin
2023-01-29 13:59:33 +01:00
committed by Space Team
parent e1c2ca1bbf
commit e1c8b3d674
7 changed files with 101 additions and 71 deletions
@@ -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()
}