Prohibit 'native' annotation on constructors
Currently doesn't work for primary ones #KT-7000 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user