Prohibit 'native' annotation on constructors

Currently doesn't work for primary ones

 #KT-7000 Fixed
This commit is contained in:
Denis Zharkov
2015-03-20 11:48:13 +03:00
parent 29b03e8175
commit ce3bf423ad
4 changed files with 45 additions and 1 deletions
@@ -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