Resolve annotations on secondary constructors

This commit is contained in:
Denis Zharkov
2015-02-18 10:26:41 +03:00
parent 9be45af267
commit 0dc155d8c9
4 changed files with 41 additions and 0 deletions
@@ -0,0 +1,9 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
annotation class Ann1
annotation class Ann2(val x: Int)
class A {
Ann1 constructor() {}
<!NO_VALUE_FOR_PARAMETER!>Ann2<!> constructor(x1: Int) {}
Ann2(2) constructor(x1: Int, x2: Int) {}
}