e6b5cb5216
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
25 lines
681 B
Kotlin
Vendored
25 lines
681 B
Kotlin
Vendored
object A1<!CONSTRUCTOR_IN_OBJECT!>()<!> {
|
|
<!CONSTRUCTOR_IN_OBJECT!>constructor(x: Int = <!TYPE_MISMATCH!>""<!>, y: Int)<!> : this() {
|
|
x + y
|
|
}
|
|
}
|
|
|
|
object A2 public <!CONSTRUCTOR_IN_OBJECT!>constructor(private val prop: Int)<!> {
|
|
<!CONSTRUCTOR_IN_OBJECT!>constructor(x: Int = <!TYPE_MISMATCH!>""<!>, y: Int)<!> : this(x * y) {
|
|
x + y
|
|
}
|
|
}
|
|
|
|
val x = object <!CONSTRUCTOR_IN_OBJECT!>(val prop: Int)<!> {
|
|
<!CONSTRUCTOR_IN_OBJECT!>constructor()<!> : this(1) {
|
|
val x = 1
|
|
x * x
|
|
}
|
|
}
|
|
|
|
class A3 {
|
|
companion object B<!CONSTRUCTOR_IN_OBJECT!>(val prop: Int)<!> {
|
|
public <!CONSTRUCTOR_IN_OBJECT!>constructor()<!> : this(2)
|
|
}
|
|
}
|