Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/native/constructor.kt
T
Denis Zharkov ce3bf423ad Prohibit 'native' annotation on constructors
Currently doesn't work for primary ones

 #KT-7000 Fixed
2015-03-27 16:09:41 +03:00

11 lines
280 B
Kotlin

class A {
<!INAPPLICABLE_ANNOTATION!>native constructor() {}<!>
inner class B {
<!INAPPLICABLE_ANNOTATION!>native constructor() {}<!>
}
<!INAPPLICABLE_ANNOTATION!>native constructor(<!UNUSED_PARAMETER!>x<!>: Int)
<!>}
class C [native] () // TODO KT-7057