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()
}
}