mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
219 B
Kotlin
Vendored
12 lines
219 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
class Foo {
|
|
}
|
|
<!DEPRECATED_BINARY_MOD!>operator<!> fun Foo.mod(x: Int): Foo = Foo()
|
|
operator fun Foo.rem(x: Int): Int = 0
|
|
|
|
fun foo() {
|
|
takeInt(Foo() % 1)
|
|
}
|
|
|
|
fun takeInt(x: Int) {} |