[FIR] Fix processing integer operator calls for not integer types

This commit is contained in:
Dmitriy Novozhilov
2020-09-14 10:52:54 +03:00
parent def647c094
commit 535898c8a4
8 changed files with 75 additions and 55 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ fun test() : Int {
val a : () -> Unit = {
<!INAPPLICABLE_CANDIDATE!>foo<!>(1)
}
return 1 - "1"
return 1 <!NONE_APPLICABLE!>-<!> "1"
}
class A() {
@@ -4,5 +4,5 @@ fun bar() {
// See exception in KT-13421
fun foo() {
42 and false
}
42 <!INAPPLICABLE_CANDIDATE!>and<!> false
}
@@ -12,9 +12,9 @@ class B {
fun test() {
with(B()) {
with(A()) {
<!INAPPLICABLE_CANDIDATE!>takeString<!>(1 % "")
takeString(1 % "")
}
}
}
fun takeString(s: String) {}
fun takeString(s: String) {}