[FIR] KT-57568: Make K2 treat signed ints as more specific than unsigned
This is the way it works in K1. See `OverloadingConflictResolver.kt:345`. ^KT-57568 Fixed Merge-request: KT-MR-9395 Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
34c82011fc
commit
12b11bd034
+12
@@ -0,0 +1,12 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-57568
|
||||
|
||||
fun <T, K> T.convert(): K = null!!
|
||||
|
||||
fun of(size: ULong) {
|
||||
of(size.convert())
|
||||
}
|
||||
|
||||
fun of(size: Int) {}
|
||||
|
||||
fun of(size: Long) {}
|
||||
Reference in New Issue
Block a user