Report error on accidentally "overriding" wait/notify

Hard-code only Object members because diagnostics are reported for all other
classes out of the box in 1.1

 #KT-7174 Fixed
This commit is contained in:
Alexander Udalov
2016-06-14 20:08:48 +03:00
parent da332d1a27
commit 79ecc9751b
5 changed files with 134 additions and 32 deletions
@@ -1,5 +1,5 @@
interface MyTrait: <!PLATFORM_CLASS_MAPPED_TO_KOTLIN, INTERFACE_WITH_SUPERCLASS!>Object<!> {
override fun toString(): String
public override fun finalize()
public <!OVERRIDING_FINAL_MEMBER!>override<!> fun wait()
}
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>public <!OVERRIDING_FINAL_MEMBER!>override<!> fun wait()<!>
}