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
27 lines
1.5 KiB
Plaintext
Vendored
27 lines
1.5 KiB
Plaintext
Vendored
FILE: varargInPrimaryConstructor.kt
|
|
public final class Foo : R|kotlin/Any| {
|
|
public constructor(vararg strings: R|kotlin/Array<out kotlin/String>|): R|Foo| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final val strings: R|kotlin/Array<out kotlin/String>| = R|<local>/strings|
|
|
public get(): R|kotlin/Array<out kotlin/String>|
|
|
|
|
}
|
|
public final fun test_1(foo: R|Foo|): R|kotlin/Unit| {
|
|
lval <iterator>: R|kotlin/collections/Iterator<kotlin/String>| = R|<local>/foo|.R|/Foo.strings|.R|SubstitutionOverride<kotlin/Array.iterator: R|kotlin/collections/Iterator<CapturedType(out kotlin/String)>|>|()
|
|
while(R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()) {
|
|
lval s: R|kotlin/String| = R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|kotlin/String|>|()
|
|
R|<local>/s|.R|kotlin/String.length|
|
|
}
|
|
|
|
}
|
|
public final fun test_2(vararg strings: R|kotlin/Array<out kotlin/String>|): R|kotlin/Unit| {
|
|
lval <iterator>: R|kotlin/collections/Iterator<kotlin/String>| = R|<local>/strings|.R|SubstitutionOverride<kotlin/Array.iterator: R|kotlin/collections/Iterator<CapturedType(out kotlin/String)>|>|()
|
|
while(R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()) {
|
|
lval s: R|kotlin/String| = R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|kotlin/String|>|()
|
|
R|<local>/s|.R|kotlin/String.length|
|
|
}
|
|
|
|
}
|