Refine diagnostics reported on primary constructors
This commit is contained in:
+8
-8
@@ -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()<!>
|
||||
}
|
||||
Reference in New Issue
Block a user