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
35 lines
557 B
Kotlin
Vendored
35 lines
557 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
|
|
fun example() {
|
|
val a = if (true) true else false
|
|
val b = if (true) else false
|
|
val c = if (true) true
|
|
val d = if (true) true else;
|
|
val e = if (true) {} else false
|
|
val f = if (true) true else {}
|
|
|
|
{
|
|
if (true) true
|
|
}();
|
|
|
|
{
|
|
if (true) true else false
|
|
}();
|
|
|
|
{
|
|
if (true) {} else false
|
|
}();
|
|
|
|
|
|
{
|
|
if (true) true else {}
|
|
}()
|
|
|
|
fun t(): Boolean {
|
|
return if (true) true
|
|
}
|
|
|
|
return if (true) true else {}
|
|
}
|