K2: disable compatibility mode for new inference

#KT-64306 Fixed
#KT-64307 Fixed
#KT-64308 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-12-13 17:11:31 +01:00
parent d5e4c1db50
commit a7dc381b93
11 changed files with 34 additions and 17 deletions
@@ -9,7 +9,7 @@ object Test1 {
fun test() {
val result = foo(::bar)
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>result<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>result<!>
}
}
}
@@ -36,7 +36,7 @@ object Test3 {
fun test() {
val result = foo(::bar)
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>result<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>result<!>
}
}
}
@@ -54,4 +54,4 @@ object Test4 {
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>result<!>
}
}
}
}