[FE 1.0] Don't report deprecation diagnostics about enum on it's own entries
^KT-37975 Fixed
This commit is contained in:
committed by
teamcity
parent
6b327d2380
commit
b2b5f4a63a
@@ -0,0 +1,8 @@
|
||||
// FIR_IDENTICAL
|
||||
// LANGUAGE: +NoDeprecationOnDeprecatedEnumEntries
|
||||
// ISSUE: KT-37975
|
||||
|
||||
@Deprecated("")
|
||||
enum class Foo(val x: Int) {
|
||||
A(42)
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package
|
||||
|
||||
@kotlin.Deprecated(message = "") public final enum class Foo : kotlin.Enum<Foo> {
|
||||
enum entry A
|
||||
|
||||
private constructor Foo(/*0*/ x: kotlin.Int)
|
||||
public final override /*1*/ /*fake_override*/ val name: kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ val ordinal: kotlin.Int
|
||||
public final val x: kotlin.Int
|
||||
protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: Foo): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun finalize(): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<Foo!>!
|
||||
public final override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): Foo
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<Foo>
|
||||
}
|
||||
Reference in New Issue
Block a user