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
37 lines
1.0 KiB
Plaintext
Vendored
37 lines
1.0 KiB
Plaintext
Vendored
FILE: genericConstructors.kt
|
|
public final class A<T> : R|kotlin/Any| {
|
|
public constructor<T>(t: R|T|): R|A<T>| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final fun foo(x: R|T|): R|kotlin/Unit| {
|
|
}
|
|
|
|
}
|
|
public abstract class B<E> : R|kotlin/Any| {
|
|
public constructor<E>(e: R|E|): R|B<E>| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final val myE: R|E| = this@R|/B|.R|/B.id|(R|<local>/e|)
|
|
public get(): R|E|
|
|
|
|
public final val a: R|A<E>| = R|/A.A|<R|E|>(R|<local>/e|)
|
|
public get(): R|A<E>|
|
|
|
|
public final fun id(e: R|E|): R|E| {
|
|
^id R|<local>/e|
|
|
}
|
|
|
|
}
|
|
public final class C : R|B<kotlin/String>| {
|
|
public constructor(): R|C| {
|
|
super<R|B<kotlin/String>|>(String())
|
|
}
|
|
|
|
public final fun bar(): R|kotlin/Unit| {
|
|
this@R|/C|.R|SubstitutionOverride</C.a: R|A<kotlin/String>|>|.R|SubstitutionOverride</A.foo: R|kotlin/Unit|>|(String())
|
|
}
|
|
|
|
}
|