Refine diagnostics reported on primary constructors

This commit is contained in:
Denis Zharkov
2015-05-29 19:06:55 +03:00
parent 9c574469ca
commit 7f9d2e8a36
10 changed files with 44 additions and 24 deletions
@@ -1,20 +1,20 @@
object A {
<!SECONDARY_CONSTRUCTOR_IN_OBJECT!>constructor()
<!>init {}
<!CONSTRUCTOR_IN_OBJECT!>constructor()<!>
init {}
}
enum class B {
X() {
<!SECONDARY_CONSTRUCTOR_IN_OBJECT!>constructor()
<!>}
<!CONSTRUCTOR_IN_OBJECT!>constructor()<!>
}
}
class C {
companion object {
<!SECONDARY_CONSTRUCTOR_IN_OBJECT!>constructor()
<!>}
<!CONSTRUCTOR_IN_OBJECT!>constructor()<!>
}
}
val anonObject = object {
<!SECONDARY_CONSTRUCTOR_IN_OBJECT!>constructor()
<!>}
<!CONSTRUCTOR_IN_OBJECT!>constructor()<!>
}