Resolve constructors declared in traits and objects
It prevents exceptions and produces less red code #EA-68667 Fixed
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
// !DIAGNOSTICS: -MISSING_CONSTRUCTOR_KEYWORD
|
||||
|
||||
class C(val a: String) {}
|
||||
|
||||
interface T1<!CONSTRUCTOR_IN_TRAIT!>(val x: String)<!> {}
|
||||
|
||||
interface T2<!CONSTRUCTOR_IN_TRAIT!>()<!> {}
|
||||
interface T2 <!CONSTRUCTOR_IN_TRAIT!>constructor()<!> {}
|
||||
|
||||
interface T3 private <!CONSTRUCTOR_IN_TRAIT!>constructor(<!UNUSED_PARAMETER!>a<!>: Int)<!> {}
|
||||
|
||||
interface T4 {
|
||||
<!CONSTRUCTOR_IN_TRAIT!>constructor(a: <!DEBUG_INFO_MISSING_UNRESOLVED!>Int<!>)<!> {
|
||||
val b: <!DEBUG_INFO_MISSING_UNRESOLVED!>Int<!> = 1
|
||||
<!CONSTRUCTOR_IN_TRAIT!>constructor(<!UNUSED_PARAMETER!>a<!>: Int)<!> {
|
||||
val <!UNUSED_VARIABLE!>b<!>: Int = 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user