[TD] Update diagnostics test data due to new test runners
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
This commit is contained in:
Vendored
+119
@@ -0,0 +1,119 @@
|
||||
FILE: implicitReceivers.kt
|
||||
public final class A : R|kotlin/Any| {
|
||||
public constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
public final class B : R|kotlin/Any| {
|
||||
public constructor(): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final fun bar(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
public final fun <T> R|T|.with(block: R|T.() -> kotlin/Unit|): R|kotlin/Unit| {
|
||||
}
|
||||
public final fun R|kotlin/Any?|.test_1(): R|kotlin/Unit| {
|
||||
when () {
|
||||
(this@R|/test_1| is R|A|) -> {
|
||||
this@R|/test_1|.R|/A.foo|()
|
||||
this@R|/test_1|.R|/A.foo|()
|
||||
}
|
||||
else -> {
|
||||
this@R|/test_1|.<Unresolved name: foo>#()
|
||||
<Unresolved name: foo>#()
|
||||
}
|
||||
}
|
||||
|
||||
this@R|/test_1|.<Unresolved name: foo>#()
|
||||
<Unresolved name: foo>#()
|
||||
}
|
||||
public final fun R|kotlin/Any?|.test_2(): R|kotlin/Unit| {
|
||||
when () {
|
||||
(this@R|/test_2| !is R|A|) -> {
|
||||
this@R|/test_2|.<Unresolved name: foo>#()
|
||||
<Unresolved name: foo>#()
|
||||
}
|
||||
else -> {
|
||||
this@R|/test_2|.R|/A.foo|()
|
||||
this@R|/test_2|.R|/A.foo|()
|
||||
}
|
||||
}
|
||||
|
||||
this@R|/test_2|.<Unresolved name: foo>#()
|
||||
<Unresolved name: foo>#()
|
||||
}
|
||||
public final fun test_3(a: R|kotlin/Any|, b: R|kotlin/Any|, c: R|kotlin/Any|): R|kotlin/Unit| {
|
||||
R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/a|, <L> = wa@fun R|kotlin/Any|.<anonymous>(): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
|
||||
^ R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/b|, <L> = wb@fun R|kotlin/Any|.<anonymous>(): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
|
||||
R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/c|, <L> = wc@fun R|kotlin/Any|.<anonymous>(): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
|
||||
(this@R|special/anonymous| as R|A|)
|
||||
this@R|special/anonymous|.R|/A.foo|()
|
||||
this@R|special/anonymous|.R|/A.foo|()
|
||||
}
|
||||
)
|
||||
this@R|special/anonymous|.R|/A.foo|()
|
||||
this@R|special/anonymous|.R|/A.foo|()
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
public final fun R|kotlin/Any?|.test_4(): R|kotlin/Unit| {
|
||||
when () {
|
||||
(this@R|/test_4| !is R|A|) -> {
|
||||
this@R|/test_4|.<Unresolved name: foo>#()
|
||||
<Unresolved name: foo>#()
|
||||
this@R|/test_4|.<Unresolved name: bar>#()
|
||||
<Unresolved name: bar>#()
|
||||
}
|
||||
else -> {
|
||||
when () {
|
||||
(this@R|/test_4| !is R|B|) -> {
|
||||
this@R|/test_4|.<Unresolved name: bar>#()
|
||||
<Unresolved name: bar>#()
|
||||
this@R|/test_4|.R|/A.foo|()
|
||||
this@R|/test_4|.R|/A.foo|()
|
||||
}
|
||||
else -> {
|
||||
this@R|/test_4|.R|/A.foo|()
|
||||
this@R|/test_4|.R|/A.foo|()
|
||||
this@R|/test_4|.R|/B.bar|()
|
||||
this@R|/test_4|.R|/B.bar|()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
this@R|/test_4|.<Unresolved name: foo>#()
|
||||
<Unresolved name: foo>#()
|
||||
this@R|/test_4|.<Unresolved name: bar>#()
|
||||
<Unresolved name: bar>#()
|
||||
}
|
||||
public final fun R|kotlin/Any|.test_5(): R|kotlin/Int| {
|
||||
^test_5 when () {
|
||||
(this@R|/test_5| is R|kotlin/collections/List<*>|) -> {
|
||||
this@R|/test_5|.R|kotlin/collections/List.size|
|
||||
}
|
||||
(this@R|/test_5| is R|kotlin/String|) -> {
|
||||
this@R|/test_5|.R|kotlin/String.length|
|
||||
}
|
||||
else -> {
|
||||
Int(0)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
public final fun R|kotlin/Any|.test_6(): R|kotlin/Unit| {
|
||||
(this@R|/test_6| as R|kotlin/collections/List<*>|)
|
||||
this@R|/test_6|.R|kotlin/collections/List.size|
|
||||
(this@R|/test_6| as R|kotlin/String|)
|
||||
this@R|/test_6|.R|kotlin/String.length|
|
||||
}
|
||||
Reference in New Issue
Block a user