Report error on declaring 'getClass' in class or package
#KT-14147 Fixed
This commit is contained in:
+2
@@ -8,6 +8,7 @@ class A {
|
||||
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>fun wait()<!> {}
|
||||
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>fun wait(l: Long)<!> {}
|
||||
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>fun wait(l: Long, i: Int)<!> {}
|
||||
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>fun getClass(): Class<Any><!> = null!!
|
||||
}
|
||||
|
||||
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>fun notify()<!> {}
|
||||
@@ -15,3 +16,4 @@ class A {
|
||||
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>fun wait()<!> {}
|
||||
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>fun wait(l: Long)<!> {}
|
||||
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>fun wait(l: Long, i: Int)<!> {}
|
||||
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>fun getClass(): Class<Any><!> = null!!
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
package
|
||||
|
||||
public fun getClass(): java.lang.Class<kotlin.Any>
|
||||
public fun notify(): kotlin.Unit
|
||||
public fun notifyAll(): kotlin.Unit
|
||||
public fun wait(): kotlin.Unit
|
||||
@@ -9,6 +10,7 @@ public fun wait(/*0*/ l: kotlin.Long, /*1*/ i: kotlin.Int): kotlin.Unit
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun getClass(): java.lang.Class<kotlin.Any>
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final fun notify(): kotlin.Unit
|
||||
public final fun notifyAll(): kotlin.Unit
|
||||
Reference in New Issue
Block a user