FIR: resolve conflicts between overloads with platform integer types

This commit is contained in:
pyos
2021-04-23 12:32:44 +02:00
committed by TeamCityServer
parent a27d428573
commit bfb1a06f3d
7 changed files with 70 additions and 6 deletions
@@ -0,0 +1,24 @@
// FILE: J.java
public class J {
public static fun f(Byte x) {}
public static fun f(Integer x) {}
public static fun f(Long x) {}
}
// FILE: x.kt
fun f(x: Byte) {}
fun f(x: Int) {}
fun f(x: Long) {}
fun g(x: Byte?) {}
fun g(x: Int?) {}
fun g(x: Long?) {}
fun main() {
J.f(123)
J.f(123123123123)
f(123)
f(123123123123)
g(123)
g(123123123123)
}