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
36 lines
1.2 KiB
Plaintext
Vendored
36 lines
1.2 KiB
Plaintext
Vendored
FILE: orInWhenBranch.kt
|
|
public final fun R|kotlin/String|.foo(): R|kotlin/Unit| {
|
|
}
|
|
public final fun test_1(a: R|kotlin/Any?|): R|kotlin/Unit| {
|
|
when (R|<local>/a|) {
|
|
($subj$ is R|kotlin/String|) || ($subj$ is R|kotlin/Any|) -> {
|
|
R|<local>/a|.<Inapplicable(INAPPLICABLE_WRONG_RECEIVER): /foo>#()
|
|
}
|
|
}
|
|
|
|
}
|
|
public final fun test_2(a: R|kotlin/Any?|): R|kotlin/Unit| {
|
|
when () {
|
|
(R|<local>/a| is R|kotlin/String|) || (R|<local>/a| is R|kotlin/Any|) -> {
|
|
R|<local>/a|.<Inapplicable(INAPPLICABLE_WRONG_RECEIVER): /foo>#()
|
|
}
|
|
}
|
|
|
|
}
|
|
public final fun test_3(a: R|kotlin/Any?|, b: R|kotlin/Boolean|): R|kotlin/Unit| {
|
|
when (R|<local>/a|) {
|
|
($subj$ is R|kotlin/String|) || ==($subj$, R|<local>/b|) -> {
|
|
R|<local>/a|.<Inapplicable(INAPPLICABLE_WRONG_RECEIVER): /foo>#()
|
|
}
|
|
}
|
|
|
|
}
|
|
public final fun test_4(a: R|kotlin/Any?|, b: R|kotlin/Boolean|): R|kotlin/Unit| {
|
|
when () {
|
|
(R|<local>/a| is R|kotlin/String|) || R|<local>/b| -> {
|
|
R|<local>/a|.<Inapplicable(INAPPLICABLE_WRONG_RECEIVER): /foo>#()
|
|
}
|
|
}
|
|
|
|
}
|