Support number conversion for binary 'rem' operator
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun fooInt(p: Int) = p
|
||||
fun fooLong(p: Long) = p
|
||||
fun fooByte(p: Byte) = p
|
||||
fun fooShort(p: Short) = p
|
||||
|
||||
fun test() {
|
||||
fooInt(1 % 1)
|
||||
fooByte(1 % 1)
|
||||
fooLong(1 % 1)
|
||||
fooShort(1 % 1)
|
||||
}
|
||||
|
||||
public operator fun Int.rem(other: Int): Int = 0
|
||||
@@ -0,0 +1,8 @@
|
||||
package
|
||||
|
||||
public fun fooByte(/*0*/ p: kotlin.Byte): kotlin.Byte
|
||||
public fun fooInt(/*0*/ p: kotlin.Int): kotlin.Int
|
||||
public fun fooLong(/*0*/ p: kotlin.Long): kotlin.Long
|
||||
public fun fooShort(/*0*/ p: kotlin.Short): kotlin.Short
|
||||
public fun test(): kotlin.Unit
|
||||
public operator fun kotlin.Int.rem(/*0*/ other: kotlin.Int): kotlin.Int
|
||||
Reference in New Issue
Block a user