KT-2752: fix old tests, add test for clashing between class and its companion object

This commit is contained in:
Alexey Andreev
2016-05-31 14:47:27 +03:00
parent 50dd1e31c3
commit 7a7a6914a6
5 changed files with 27 additions and 4 deletions
@@ -14,7 +14,7 @@ class A {
fun Int.invoke(a: String, b: Int)<!> = "OK"
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
val foo = 0
val baz = 0
<!WRONG_ANNOTATION_TARGET!>@nativeInvoke<!>
object Obj {}
@@ -2,7 +2,7 @@ package
public final class A {
public constructor A()
@kotlin.js.nativeInvoke() public final val foo: kotlin.Int = 0
@kotlin.js.nativeInvoke() public final val baz: kotlin.Int = 0
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
@kotlin.js.nativeInvoke() public final fun foo(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int