4374c06537
#KT-42016
16 lines
365 B
Kotlin
Vendored
16 lines
365 B
Kotlin
Vendored
// !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)
|
|
<!INAPPLICABLE_CANDIDATE!>fooByte<!>(1 % 1)
|
|
<!INAPPLICABLE_CANDIDATE!>fooLong<!>(1 % 1)
|
|
<!INAPPLICABLE_CANDIDATE!>fooShort<!>(1 % 1)
|
|
}
|
|
|
|
public operator fun Int.rem(other: Int): Int = 0
|