Report warning on unary plus()/minus()

This commit is contained in:
Yan Zhulanow
2015-10-12 18:37:28 +03:00
parent 58cbf09232
commit b2470a6aad
16 changed files with 75 additions and 36 deletions
@@ -33,7 +33,7 @@ class MyProperty<R, T> {
}
}
operator fun <R, T> MyProperty<R, T>.plus() = MyProperty<R, T>()
operator fun <R, T> MyProperty<R, T>.unaryPlus() = MyProperty<R, T>()
operator fun <R, T> MyProperty<R, T>.minus(<!UNUSED_PARAMETER!>i<!>: Int) = MyProperty<R, T>()
object O {
@@ -6,7 +6,7 @@ package baz {
public fun </*0*/ A, /*1*/ B> getMyProperty(): baz.MyProperty<A, B>
public fun println(/*0*/ a: kotlin.Any?): kotlin.Any?
public operator fun </*0*/ R, /*1*/ T> baz.MyProperty<R, T>.minus(/*0*/ i: kotlin.Int): baz.MyProperty<R, T>
public operator fun </*0*/ R, /*1*/ T> baz.MyProperty<R, T>.plus(): baz.MyProperty<R, T>
public operator fun </*0*/ R, /*1*/ T> baz.MyProperty<R, T>.unaryPlus(): baz.MyProperty<R, T>
public final class A {
public constructor A(/*0*/ outer: baz.Outer)