[FIR] Approximate all integer literals which resolved in independent mode

#KT-42016
This commit is contained in:
Dmitriy Novozhilov
2020-09-18 11:05:44 +03:00
parent 5efd533f55
commit 4374c06537
22 changed files with 121 additions and 92 deletions
@@ -7,9 +7,9 @@ fun fooShort(p: Short) = p
fun test() {
fooInt(1 % 1)
fooByte(1 % 1)
fooLong(1 % 1)
fooShort(1 % 1)
<!INAPPLICABLE_CANDIDATE!>fooByte<!>(1 % 1)
<!INAPPLICABLE_CANDIDATE!>fooLong<!>(1 % 1)
<!INAPPLICABLE_CANDIDATE!>fooShort<!>(1 % 1)
}
public operator fun Int.rem(other: Int): Int = 0
public operator fun Int.rem(other: Int): Int = 0