Report error on native abstract declarations

This commit is contained in:
Andrey Breslav
2014-12-01 15:43:50 +03:00
parent 76e2ae2005
commit d4cf789b53
6 changed files with 34 additions and 9 deletions
@@ -0,0 +1,11 @@
import kotlin.jvm.*
abstract class C {
<!NATIVE_DECLARATION_CANNOT_BE_ABSTRACT!>abstract<!> native fun foo()
}
fun test() {
abstract class Local {
<!NATIVE_DECLARATION_CANNOT_BE_ABSTRACT!>abstract<!> native fun foo()
}
}
@@ -0,0 +1,11 @@
package
internal fun test(): kotlin.Unit
internal abstract class C {
public constructor C()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
kotlin.jvm.native() internal abstract fun foo(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}