Disallowed @Deprecated for local variables and parameters

This commit is contained in:
Valentin Kipyatkov
2015-09-07 20:37:07 +03:00
parent 5d09edb3e6
commit 452cd49c5e
6 changed files with 12 additions and 7 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
package test
enum class MyEnum(@param:Deprecated("") @property:Deprecated("") val ord: Int) {
annotation class AAA
enum class MyEnum(@param:AAA @property:Deprecated("") val ord: Int) {
ENTRY(239);
fun f(@java.lang.Deprecated p: Int) {
@@ -1,9 +1,13 @@
package test
@kotlin.annotation.annotation() public final class AAA : kotlin.Annotation {
public constructor AAA()
}
public final enum class MyEnum : kotlin.Enum<test.MyEnum> {
enum entry ENTRY
private constructor MyEnum(/*0*/ @kotlin.Deprecated(value = "") kotlin.Int)
private constructor MyEnum(/*0*/ @test.AAA() kotlin.Int)
@kotlin.Deprecated(value = "") public final val ord: kotlin.Int
protected final /*fake_override*/ fun clone(): kotlin.Any
public final /*fake_override*/ fun compareTo(/*0*/ test.MyEnum): kotlin.Int