Move FIR tests to fir modules
This commit is contained in:
committed by
Mikhail Glukhikh
parent
95af0268b8
commit
cfb446df9e
@@ -1,4 +0,0 @@
|
||||
open class A
|
||||
|
||||
|
||||
class B : A
|
||||
@@ -1,9 +0,0 @@
|
||||
FILE: F.kt
|
||||
public? open class A {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
public? final? class B : A {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
abstract class A {
|
||||
abstract class Nested
|
||||
}
|
||||
|
||||
typealias TA = A
|
||||
|
||||
class B : TA() {
|
||||
class NestedInB : Nested()
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
FILE: NestedOfAliasedType.kt
|
||||
public? abstract class A {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
public? abstract class Nested {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public? final typealias TA = A
|
||||
public? final? class B : TA {
|
||||
public? constructor(): super<TA>()
|
||||
|
||||
public? final? class NestedInB : Nested {
|
||||
public? constructor(): super<Nested>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package p
|
||||
|
||||
abstract class My {
|
||||
abstract class NestedOne : My() {
|
||||
abstract class NestedTwo : NestedOne() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Your : My() {
|
||||
class NestedThree : NestedOne()
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
FILE: NestedSuperType.kt
|
||||
public? abstract class My {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
public? abstract class NestedOne : My {
|
||||
public? constructor(): super<My>()
|
||||
|
||||
public? abstract class NestedTwo : NestedOne {
|
||||
public? constructor(): super<NestedOne>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public? final? class Your : My {
|
||||
public? constructor(): super<My>()
|
||||
|
||||
public? final? class NestedThree : NestedOne {
|
||||
public? constructor(): super<NestedOne>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package a.b
|
||||
|
||||
class C<T, out S> {
|
||||
inner class D<R, in P> {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
interface Test {
|
||||
val x: a.b.C<out CharSequence, *>.D<in List<*>, *>
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
FILE: complexTypes.kt
|
||||
<T, out S> public? final? class C {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
<R, in P> public? final? inner class D {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public? final? interface Test {
|
||||
public? final? property x(val): a.b.C<out CharSequence, *>.D<in List<*>, *>
|
||||
public? get(): a.b.C<out CharSequence, *>.D<in List<*>, *>
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
open class Base<T>(val x: T)
|
||||
|
||||
class Derived<T : Any>(x: T) : Base<T>(x)
|
||||
|
||||
fun <T : Any> create(x: T): Derived<T> = Derived(x)
|
||||
@@ -1,15 +0,0 @@
|
||||
FILE: derivedClass.kt
|
||||
<T> public? open class Base {
|
||||
public? constructor(x: T): super<kotlin.Any>()
|
||||
|
||||
public? final? property x(val): T
|
||||
public? get(): T
|
||||
|
||||
}
|
||||
<T : Any> public? final? class Derived : Base<T> {
|
||||
public? constructor(x: T): super<Base<T>>()
|
||||
|
||||
}
|
||||
<T : Any> public? final? function create(x: T): Derived<T> {
|
||||
STUB
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import my.println
|
||||
|
||||
enum class Order {
|
||||
FIRST,
|
||||
SECOND,
|
||||
THIRD
|
||||
}
|
||||
|
||||
enum class Planet(val m: Double, internal val r: Double) {
|
||||
MERCURY(1.0, 2.0) {
|
||||
override fun sayHello() {
|
||||
println("Hello!!!")
|
||||
}
|
||||
},
|
||||
VENERA(3.0, 4.0) {
|
||||
override fun sayHello() {
|
||||
println("Ola!!!")
|
||||
}
|
||||
},
|
||||
EARTH(5.0, 6.0) {
|
||||
override fun sayHello() {
|
||||
println("Privet!!!")
|
||||
}
|
||||
};
|
||||
|
||||
val g: Double = G * m / (r * r)
|
||||
|
||||
abstract fun sayHello()
|
||||
|
||||
companion object {
|
||||
const val G = 6.67e-11
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
FILE: enums.kt
|
||||
public? final? enum class Order {
|
||||
public? constructor(): super<kotlin.Enum>()
|
||||
|
||||
public? final enum entry FIRST {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
|
||||
public? final enum entry SECOND {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
|
||||
public? final enum entry THIRD {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public? final? enum class Planet {
|
||||
public? constructor(m: Double, r: Double): super<kotlin.Enum>()
|
||||
|
||||
public? final? property m(val): Double
|
||||
public? get(): Double
|
||||
|
||||
internal final? property r(val): Double
|
||||
internal get(): Double
|
||||
|
||||
public? final enum entry MERCURY : Planet {
|
||||
public? constructor(): super<Planet>()
|
||||
|
||||
public? open? override function sayHello(): kotlin.Unit {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public? final enum entry VENERA : Planet {
|
||||
public? constructor(): super<Planet>()
|
||||
|
||||
public? open? override function sayHello(): kotlin.Unit {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public? final enum entry EARTH : Planet {
|
||||
public? constructor(): super<Planet>()
|
||||
|
||||
public? open? override function sayHello(): kotlin.Unit {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public? final? property g(val): Double = STUB
|
||||
public? get(): Double
|
||||
|
||||
public? abstract function sayHello(): kotlin.Unit
|
||||
|
||||
public? final? companion object Companion {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
public? final? const property G(val): <implicit> = STUB
|
||||
public? get(): <implicit>
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
interface Some
|
||||
|
||||
object O1 : Some
|
||||
|
||||
object O2 : Some
|
||||
|
||||
enum class SomeEnum(val x: Some) {
|
||||
FIRST(O1) {
|
||||
override fun check(y: Some): Boolean = true
|
||||
},
|
||||
SECOND(O2) {
|
||||
override fun check(y: Some): Boolean = y == O2
|
||||
};
|
||||
|
||||
abstract fun check(y: Some): Boolean
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
FILE: enums2.kt
|
||||
public? final? interface Some {
|
||||
}
|
||||
public? final? object O1 : Some {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
public? final? object O2 : Some {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
public? final? enum class SomeEnum {
|
||||
public? constructor(x: Some): super<kotlin.Enum>()
|
||||
|
||||
public? final? property x(val): Some
|
||||
public? get(): Some
|
||||
|
||||
public? final enum entry FIRST : SomeEnum {
|
||||
public? constructor(): super<SomeEnum>()
|
||||
|
||||
public? open? override function check(y: Some): Boolean {
|
||||
STUB
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public? final enum entry SECOND : SomeEnum {
|
||||
public? constructor(): super<SomeEnum>()
|
||||
|
||||
public? open? override function check(y: Some): Boolean {
|
||||
STUB
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public? abstract function check(y: Some): Boolean
|
||||
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
expect class MyClass
|
||||
|
||||
expect fun foo(): String
|
||||
|
||||
expect val x: Int
|
||||
|
||||
actual class MyClass
|
||||
|
||||
actual fun foo() = "Hello"
|
||||
|
||||
actual val x = 42
|
||||
@@ -1,17 +0,0 @@
|
||||
FILE: expectActual.kt
|
||||
public? final? expect class MyClass {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
public? final? expect function foo(): String
|
||||
public? final? expect property x(val): Int
|
||||
public? get(): Int
|
||||
public? final? actual class MyClass {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
public? final? actual function foo(): <implicit> {
|
||||
STUB
|
||||
}
|
||||
public? final? actual property x(val): <implicit> = STUB
|
||||
public? get(): <implicit>
|
||||
@@ -1,8 +0,0 @@
|
||||
fun <T> simpleRun(f: (T) -> Unit): Unit = f()
|
||||
|
||||
fun <T, R> List<T>.simpleMap(f: (T) -> R): R {
|
||||
|
||||
}
|
||||
|
||||
fun <T> simpleWith(t: T, f: T.() -> Unit): Unit = t.f()
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
FILE: functionTypes.kt
|
||||
<T> public? final? function simpleRun(f: ( (T) -> Unit )): Unit {
|
||||
STUB
|
||||
}
|
||||
<T, R> public? final? function simpleMap List<T>.(f: ( (T) -> R )): R {
|
||||
}
|
||||
<T> public? final? function simpleWith(t: T, f: ( T.() -> Unit )): Unit {
|
||||
STUB
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
interface Any
|
||||
|
||||
inline fun <reified T : Any> Any.safeAs(): T? = this as? T
|
||||
|
||||
abstract class Summator {
|
||||
abstract fun <T> plus(first: T, second: T): T
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
FILE: genericFunctions.kt
|
||||
public? final? interface Any {
|
||||
}
|
||||
<reified T : Any> public? final? inline function safeAs Any.(): T? {
|
||||
STUB
|
||||
}
|
||||
public? abstract class Summator {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
<T> public? abstract function plus(first: T, second: T): T
|
||||
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
abstract class Base(val s: String)
|
||||
|
||||
class Outer {
|
||||
class Derived(s: String) : Base(s)
|
||||
|
||||
object Obj : Base("")
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
FILE: nestedClass.kt
|
||||
public? abstract class Base {
|
||||
public? constructor(s: String): super<kotlin.Any>()
|
||||
|
||||
public? final? property s(val): String
|
||||
public? get(): String
|
||||
|
||||
}
|
||||
public? final? class Outer {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
public? final? class Derived : Base {
|
||||
public? constructor(s: String): super<Base>()
|
||||
|
||||
}
|
||||
|
||||
public? final? object Obj : Base {
|
||||
public? constructor(): super<Base>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
class NoPrimary {
|
||||
val x: String
|
||||
|
||||
constructor(x: String) {
|
||||
this.x = x
|
||||
}
|
||||
|
||||
constructor(): this("")
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
FILE: noPrimaryConstructor.kt
|
||||
public? final? class NoPrimary {
|
||||
public? final? property x(val): String
|
||||
public? get(): String
|
||||
|
||||
public? constructor(x: String): super<kotlin.Any>() {
|
||||
}
|
||||
|
||||
public? constructor(): this<NoPrimary>()
|
||||
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
interface SomeInterface {
|
||||
fun foo(x: Int, y: String): String
|
||||
|
||||
val bar: Boolean
|
||||
}
|
||||
|
||||
class SomeClass : SomeInterface {
|
||||
private val baz = 42
|
||||
|
||||
override fun foo(x: Int, y: String): String {
|
||||
return y + x + baz
|
||||
}
|
||||
|
||||
override var bar: Boolean
|
||||
get() = true
|
||||
set(value) {}
|
||||
|
||||
lateinit var fau: Double
|
||||
}
|
||||
|
||||
inline class InlineClass
|
||||
@@ -1,33 +0,0 @@
|
||||
FILE: simpleClass.kt
|
||||
public? final? interface SomeInterface {
|
||||
public? final? function foo(x: Int, y: String): String
|
||||
|
||||
public? final? property bar(val): Boolean
|
||||
public? get(): Boolean
|
||||
|
||||
}
|
||||
public? final? class SomeClass : SomeInterface {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
private final? property baz(val): <implicit> = STUB
|
||||
private get(): <implicit>
|
||||
|
||||
public? open? override function foo(x: Int, y: String): String {
|
||||
}
|
||||
|
||||
public? open? override property bar(var): Boolean
|
||||
public? get(): Boolean {
|
||||
STUB
|
||||
}
|
||||
public? set(value: Boolean): kotlin.Unit {
|
||||
}
|
||||
|
||||
public? final? lateinit property fau(var): Double
|
||||
public? get(): Double
|
||||
public? set(value: Double): kotlin.Unit
|
||||
|
||||
}
|
||||
public? final? inline class InlineClass {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
fun foo() {}
|
||||
@@ -1,3 +0,0 @@
|
||||
FILE: simpleFun.kt
|
||||
public? final? function foo(): kotlin.Unit {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
interface B
|
||||
|
||||
typealias C = B
|
||||
|
||||
class D : C
|
||||
@@ -1,8 +0,0 @@
|
||||
FILE: simpleTypeAlias.kt
|
||||
public? final? interface B {
|
||||
}
|
||||
public? final typealias C = B
|
||||
public? final? class D : C {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
open class A
|
||||
|
||||
interface B<S, T : A>
|
||||
|
||||
typealias C<T> = B<T, A>
|
||||
|
||||
class D : C<A>
|
||||
@@ -1,12 +0,0 @@
|
||||
FILE: typeAliasWithGeneric.kt
|
||||
public? open class A {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
<S, T : A> public? final? interface B {
|
||||
}
|
||||
<T> public? final typealias C = B<T, A>
|
||||
public? final? class D : C<A> {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package test
|
||||
|
||||
interface Some
|
||||
|
||||
abstract class My<T : Some> {
|
||||
inner class T
|
||||
|
||||
abstract val x: T
|
||||
|
||||
abstract fun foo(arg: T)
|
||||
|
||||
abstract val y: My.T
|
||||
|
||||
abstract val z: test.My.T
|
||||
|
||||
class Some : T()
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
FILE: typeParameterVsNested.kt
|
||||
public? final? interface Some {
|
||||
}
|
||||
<T : Some> public? abstract class My {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
public? final? inner class T {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
|
||||
public? abstract property x(val): T
|
||||
public? get(): T
|
||||
|
||||
public? abstract function foo(arg: T): kotlin.Unit
|
||||
|
||||
public? abstract property y(val): My.T
|
||||
public? get(): My.T
|
||||
|
||||
public? abstract property z(val): test.My.T
|
||||
public? get(): test.My.T
|
||||
|
||||
public? final? class Some : T {
|
||||
public? constructor(): super<T>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
interface List<out T : Any> {
|
||||
operator fun get(index: Int): T
|
||||
|
||||
infix fun concat(other: List<T>): List<T>
|
||||
}
|
||||
|
||||
typealias StringList = List<out String>
|
||||
typealias AnyList = List<*>
|
||||
|
||||
abstract class AbstractList<out T : Any> : List<T>
|
||||
|
||||
class SomeList : AbstractList<Int>() {
|
||||
override fun get(index: Int): Int = 42
|
||||
|
||||
override fun concat(other: List<Int>): List<Int> = this
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
FILE: typeParameters.kt
|
||||
<out T : Any> public? final? interface List {
|
||||
public? final? operator function get(index: Int): T
|
||||
|
||||
public? final? infix function concat(other: List<T>): List<T>
|
||||
|
||||
}
|
||||
public? final typealias StringList = List<out String>
|
||||
public? final typealias AnyList = List<*>
|
||||
<out T : Any> public? abstract class AbstractList : List<T> {
|
||||
public? constructor(): super<kotlin.Any>()
|
||||
|
||||
}
|
||||
public? final? class SomeList : AbstractList<Int> {
|
||||
public? constructor(): super<AbstractList<Int>>()
|
||||
|
||||
public? open? override function get(index: Int): Int {
|
||||
STUB
|
||||
}
|
||||
|
||||
public? open? override function concat(other: List<Int>): List<Int> {
|
||||
STUB
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
open class A
|
||||
|
||||
|
||||
class B : A()
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
FILE: F.kt
|
||||
public open class A {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
public final class B : R|A| {
|
||||
public constructor(): super<R|A|>()
|
||||
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
abstract class A {
|
||||
abstract class Nested
|
||||
}
|
||||
|
||||
typealias TA = A
|
||||
|
||||
class B : TA() {
|
||||
class NestedInB : Nested()
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
FILE: NestedOfAliasedType.kt
|
||||
public abstract class A {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
public abstract class Nested {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public final typealias TA = R|A|
|
||||
public final class B : R|TA = A| {
|
||||
public constructor(): super<R|TA = A|>()
|
||||
|
||||
public final class NestedInB : R|A.Nested| {
|
||||
public constructor(): super<R|A.Nested|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package p
|
||||
|
||||
abstract class My {
|
||||
abstract class NestedOne : My() {
|
||||
abstract class NestedTwo : NestedOne() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Your : My() {
|
||||
class NestedThree : NestedOne()
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
FILE: NestedSuperType.kt
|
||||
public abstract class My {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
public abstract class NestedOne : R|p/My| {
|
||||
public constructor(): super<R|p/My|>()
|
||||
|
||||
public abstract class NestedTwo : R|p/My.NestedOne| {
|
||||
public constructor(): super<R|p/My.NestedOne|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public final class Your : R|p/My| {
|
||||
public constructor(): super<R|p/My|>()
|
||||
|
||||
public final class NestedThree : R|p/My.NestedOne| {
|
||||
public constructor(): super<R|p/My.NestedOne|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package p
|
||||
|
||||
|
||||
open class A
|
||||
|
||||
class B : A()
|
||||
@@ -1,9 +0,0 @@
|
||||
FILE: TwoDeclarationsInSameFile.kt
|
||||
public open class A {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
public final class B : R|p/A| {
|
||||
public constructor(): super<R|p/A|>()
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
abstract class MyStringList : List<String>
|
||||
abstract class MyMutableStringList : MutableList<String>
|
||||
|
||||
fun List<String>.convert(): MyStringList = this as MyStringList
|
||||
fun ret(l: MutableList<String>): MyMutableStringList = this as MyMutableStringList
|
||||
@@ -1,15 +0,0 @@
|
||||
FILE: lists.kt
|
||||
public abstract class MyStringList : R|kotlin/collections/List<kotlin/String>| {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
public abstract class MyMutableStringList : R|kotlin/collections/MutableList<kotlin/String>| {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
public final function convert R|kotlin/collections/List<kotlin/String>|.(): R|MyStringList| {
|
||||
STUB
|
||||
}
|
||||
public final function ret(l: R|kotlin/collections/MutableList<kotlin/String>|): R|MyMutableStringList| {
|
||||
STUB
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package test
|
||||
|
||||
abstract class Some {
|
||||
companion object {
|
||||
class InCompanion
|
||||
}
|
||||
|
||||
abstract val x: InCompanion
|
||||
}
|
||||
|
||||
abstract class Another {
|
||||
companion object NamedCompanion {
|
||||
class InCompanion
|
||||
}
|
||||
|
||||
abstract val x: InCompanion
|
||||
}
|
||||
-35
@@ -1,35 +0,0 @@
|
||||
FILE: companion.kt
|
||||
public abstract class Some {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
public final companion object Companion {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
public final class InCompanion {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public abstract property x(val): R|test/Some.Companion.InCompanion|
|
||||
public get(): R|test/Some.Companion.InCompanion|
|
||||
|
||||
}
|
||||
public abstract class Another {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
public final companion object NamedCompanion {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
public final class InCompanion {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public abstract property x(val): R|test/Another.NamedCompanion.InCompanion|
|
||||
public get(): R|test/Another.NamedCompanion.InCompanion|
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
open class Base<T>(val x: T)
|
||||
|
||||
class Derived<T : Any>(x: T) : Base<T>(x)
|
||||
|
||||
fun <T : Any> create(x: T): Derived<T> = Derived(x)
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
FILE: derivedClass.kt
|
||||
<T> public open class Base {
|
||||
public constructor(x: R|T|): super<R|kotlin/Any|>()
|
||||
|
||||
public final property x(val): R|T|
|
||||
public get(): R|T|
|
||||
|
||||
}
|
||||
<T : R|kotlin/Any|> public final class Derived : R|Base<T>| {
|
||||
public constructor(x: R|T|): super<R|Base<T>|>()
|
||||
|
||||
}
|
||||
<T : R|kotlin/Any|> public final function create(x: R|T|): R|Derived<T>| {
|
||||
STUB
|
||||
}
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
interface Some
|
||||
|
||||
object O1 : Some
|
||||
|
||||
object O2 : Some
|
||||
|
||||
enum class SomeEnum(val x: Some) {
|
||||
FIRST(O1) {
|
||||
override fun check(y: Some): Boolean = true
|
||||
},
|
||||
SECOND(O2) {
|
||||
override fun check(y: Some): Boolean = y == O2
|
||||
};
|
||||
|
||||
abstract fun check(y: Some): Boolean
|
||||
}
|
||||
-38
@@ -1,38 +0,0 @@
|
||||
FILE: enum.kt
|
||||
public abstract interface Some {
|
||||
}
|
||||
public final object O1 : R|Some| {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
public final object O2 : R|Some| {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
public final enum class SomeEnum {
|
||||
private constructor(x: R|Some|): super<R|kotlin/Enum|>()
|
||||
|
||||
public final property x(val): R|Some|
|
||||
public get(): R|Some|
|
||||
|
||||
public final enum entry FIRST : R|SomeEnum| {
|
||||
public constructor(): super<R|SomeEnum|>()
|
||||
|
||||
public final override function check(y: R|Some|): R|kotlin/Boolean| {
|
||||
STUB
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final enum entry SECOND : R|SomeEnum| {
|
||||
public constructor(): super<R|SomeEnum|>()
|
||||
|
||||
public final override function check(y: R|Some|): R|kotlin/Boolean| {
|
||||
STUB
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public abstract function check(y: R|Some|): R|kotlin/Boolean|
|
||||
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package a.b
|
||||
|
||||
class C<T, out S> {
|
||||
inner class D<R, in P> {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
interface Test {
|
||||
val x: a.b.C<out CharSequence, *>.D<in List<*>, *>
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
FILE: complexTypes.kt
|
||||
<T, out S> public final class C {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
<R, in P> public final inner class D {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public abstract interface Test {
|
||||
public abstract property x(val): R|a/b/C.D<out kotlin/CharSequence, *, in kotlin/collections/List<*>, *>|
|
||||
public get(): R|a/b/C.D<out kotlin/CharSequence, *, in kotlin/collections/List<*>, *>|
|
||||
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import my.println
|
||||
|
||||
enum class Order {
|
||||
FIRST,
|
||||
SECOND,
|
||||
THIRD
|
||||
}
|
||||
|
||||
enum class Planet(val m: Double, internal val r: Double) {
|
||||
MERCURY(1.0, 2.0) {
|
||||
override fun sayHello() {
|
||||
println("Hello!!!")
|
||||
}
|
||||
},
|
||||
VENERA(3.0, 4.0) {
|
||||
override fun sayHello() {
|
||||
println("Ola!!!")
|
||||
}
|
||||
},
|
||||
EARTH(5.0, 6.0) {
|
||||
override fun sayHello() {
|
||||
println("Privet!!!")
|
||||
}
|
||||
};
|
||||
|
||||
val g: Double = G * m / (r * r)
|
||||
|
||||
abstract fun sayHello()
|
||||
|
||||
companion object {
|
||||
const val G = 6.67e-11
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
FILE: enums.kt
|
||||
public final enum class Order {
|
||||
private constructor(): super<R|kotlin/Enum|>()
|
||||
|
||||
public final enum entry FIRST {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
|
||||
public final enum entry SECOND {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
|
||||
public final enum entry THIRD {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public final enum class Planet {
|
||||
private constructor(m: R|kotlin/Double|, r: R|kotlin/Double|): super<R|kotlin/Enum|>()
|
||||
|
||||
public final property m(val): R|kotlin/Double|
|
||||
public get(): R|kotlin/Double|
|
||||
|
||||
internal final property r(val): R|kotlin/Double|
|
||||
internal get(): R|kotlin/Double|
|
||||
|
||||
public final enum entry MERCURY : R|Planet| {
|
||||
public constructor(): super<R|Planet|>()
|
||||
|
||||
public final override function sayHello(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final enum entry VENERA : R|Planet| {
|
||||
public constructor(): super<R|Planet|>()
|
||||
|
||||
public final override function sayHello(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final enum entry EARTH : R|Planet| {
|
||||
public constructor(): super<R|Planet|>()
|
||||
|
||||
public final override function sayHello(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final property g(val): R|kotlin/Double| = STUB
|
||||
public get(): R|kotlin/Double|
|
||||
|
||||
public abstract function sayHello(): R|kotlin/Unit|
|
||||
|
||||
public final companion object Companion {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
public final const property G(val): R|error: Not supported: FirImplicitTypeImpl| = STUB
|
||||
public get(): R|error: Not supported: FirImplicitTypeImpl|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
class NoPrimary {
|
||||
val x: String
|
||||
|
||||
constructor(x: String) {
|
||||
this.x = x
|
||||
}
|
||||
|
||||
constructor(): this("")
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
FILE: noPrimaryConstructor.kt
|
||||
public final class NoPrimary {
|
||||
public final property x(val): R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
public constructor(x: R|kotlin/String|): super<R|kotlin/Any|>() {
|
||||
}
|
||||
|
||||
public constructor(): this<R|NoPrimary|>()
|
||||
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
interface SomeInterface {
|
||||
fun foo(x: Int, y: String): String
|
||||
|
||||
val bar: Boolean
|
||||
}
|
||||
|
||||
class SomeClass : SomeInterface {
|
||||
private val baz = 42
|
||||
|
||||
override fun foo(x: Int, y: String): String {
|
||||
return y + x + baz
|
||||
}
|
||||
|
||||
override var bar: Boolean
|
||||
get() = true
|
||||
set(value) {}
|
||||
|
||||
lateinit var fau: Double
|
||||
}
|
||||
|
||||
inline class InlineClass
|
||||
@@ -1,33 +0,0 @@
|
||||
FILE: simpleClass.kt
|
||||
public abstract interface SomeInterface {
|
||||
public abstract function foo(x: R|kotlin/Int|, y: R|kotlin/String|): R|kotlin/String|
|
||||
|
||||
public abstract property bar(val): R|kotlin/Boolean|
|
||||
public get(): R|kotlin/Boolean|
|
||||
|
||||
}
|
||||
public final class SomeClass : R|SomeInterface| {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
private final property baz(val): R|error: Not supported: FirImplicitTypeImpl| = STUB
|
||||
private get(): R|error: Not supported: FirImplicitTypeImpl|
|
||||
|
||||
public final override function foo(x: R|kotlin/Int|, y: R|kotlin/String|): R|kotlin/String| {
|
||||
}
|
||||
|
||||
public final override property bar(var): R|kotlin/Boolean|
|
||||
public get(): R|kotlin/Boolean| {
|
||||
STUB
|
||||
}
|
||||
public set(value: R|kotlin/Boolean|): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final lateinit property fau(var): R|kotlin/Double|
|
||||
public get(): R|kotlin/Double|
|
||||
public set(value: R|kotlin/Double|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
public final inline class InlineClass {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
interface List<out T : Any> {
|
||||
operator fun get(index: Int): T
|
||||
|
||||
infix fun concat(other: List<T>): List<T>
|
||||
}
|
||||
|
||||
typealias StringList = List<out String>
|
||||
typealias AnyList = List<*>
|
||||
|
||||
abstract class AbstractList<out T : Any> : List<T>
|
||||
|
||||
class SomeList : AbstractList<Int>() {
|
||||
override fun get(index: Int): Int = 42
|
||||
|
||||
override fun concat(other: List<Int>): List<Int> = this
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
FILE: typeParameters.kt
|
||||
<out T : R|kotlin/Any|> public abstract interface List {
|
||||
public abstract operator function get(index: R|kotlin/Int|): R|T|
|
||||
|
||||
public abstract infix function concat(other: R|List<T>|): R|List<T>|
|
||||
|
||||
}
|
||||
public final typealias StringList = R|List<out kotlin/String>|
|
||||
public final typealias AnyList = R|List<*>|
|
||||
<out T : R|kotlin/Any|> public abstract class AbstractList : R|List<T>| {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
}
|
||||
public final class SomeList : R|AbstractList<kotlin/Int>| {
|
||||
public constructor(): super<R|AbstractList<kotlin/Int>|>()
|
||||
|
||||
public final override function get(index: R|kotlin/Int|): R|kotlin/Int| {
|
||||
STUB
|
||||
}
|
||||
|
||||
public final override function concat(other: R|List<kotlin/Int>|): R|List<kotlin/Int>| {
|
||||
STUB
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
-6
@@ -1,6 +0,0 @@
|
||||
interface KMutableProperty1<T> : KProperty1<T>
|
||||
|
||||
interface KProperty1<T> : (T) -> Int
|
||||
|
||||
|
||||
|
||||
Vendored
-5
@@ -1,5 +0,0 @@
|
||||
FILE: ft.kt
|
||||
<T> public abstract interface KMutableProperty1 : R|KProperty1<T>| {
|
||||
}
|
||||
<T> public abstract interface KProperty1 : R|(T) -> kotlin/Int| {
|
||||
}
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
fun <T> simpleRun(f: (T) -> Unit): Unit = f()
|
||||
|
||||
fun <T, R> List<T>.simpleMap(f: (T) -> R): R {
|
||||
|
||||
}
|
||||
|
||||
fun <T> simpleWith(t: T, f: T.() -> Unit): Unit = t.f()
|
||||
|
||||
interface KMutableProperty1<T, R> : KProperty1<T, R>, KMutableProperty<R>
|
||||
|
||||
interface KProperty1<T, out R> : KProperty<R>, (T) -> R
|
||||
|
||||
interface KProperty<out R>
|
||||
|
||||
interface KMutableProperty<R>
|
||||
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
FILE: functionTypes.kt
|
||||
<T> public final function simpleRun(f: R|(T) -> kotlin/Unit|): R|kotlin/Unit| {
|
||||
STUB
|
||||
}
|
||||
<T, R> public final function simpleMap R|kotlin/collections/List<T>|.(f: R|(T) -> R|): R|R| {
|
||||
}
|
||||
<T> public final function simpleWith(t: R|T|, f: R|T.() -> kotlin/Unit|): R|kotlin/Unit| {
|
||||
STUB
|
||||
}
|
||||
<T, R> public abstract interface KMutableProperty1 : R|KProperty1<T, R>|, R|KMutableProperty<R>| {
|
||||
}
|
||||
<T, out R> public abstract interface KProperty1 : R|KProperty<R>|, R|(T) -> R| {
|
||||
}
|
||||
<out R> public abstract interface KProperty {
|
||||
}
|
||||
<R> public abstract interface KMutableProperty {
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
interface Any
|
||||
|
||||
inline fun <reified T : Any> Any.safeAs(): T? = this as? T
|
||||
|
||||
abstract class Summator {
|
||||
abstract fun <T> plus(first: T, second: T): T
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
FILE: genericFunctions.kt
|
||||
public abstract interface Any {
|
||||
}
|
||||
<reified T : R|Any|> public final inline function safeAs R|Any|.(): R|T| {
|
||||
STUB
|
||||
}
|
||||
public abstract class Summator {
|
||||
public constructor(): super<R|Any|>()
|
||||
|
||||
<T> public abstract function plus(first: R|T|, second: R|T|): R|T|
|
||||
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package annotations
|
||||
|
||||
@Target(AnnotationTarget.FILE, AnnotationTarget.FUNCTION, AnnotationTarget.TYPE, AnnotationTarget.PROPERTY_GETTER)
|
||||
annotation class Simple
|
||||
|
||||
annotation class WithInt(val value: Int)
|
||||
|
||||
annotation class WithString(val s: String)
|
||||
|
||||
annotation class Complex(val wi: WithInt, val ws: WithString)
|
||||
@@ -1,28 +0,0 @@
|
||||
@file:Simple
|
||||
package test
|
||||
|
||||
import annotations.*
|
||||
|
||||
@WithInt(42)
|
||||
abstract class First {
|
||||
@Simple
|
||||
abstract fun foo(@WithString("abc") arg: @Simple Double)
|
||||
|
||||
@Complex(WithInt(7), WithString(""))
|
||||
abstract val v: String
|
||||
}
|
||||
|
||||
@WithString("xyz")
|
||||
class Second(val y: Char) : @WithInt(0) First() {
|
||||
override fun foo(arg: Double) {
|
||||
}
|
||||
|
||||
override val v: String
|
||||
@Simple get() = ""
|
||||
|
||||
@WithString("constructor")
|
||||
constructor(): this('\n')
|
||||
}
|
||||
|
||||
@WithInt(24)
|
||||
typealias Third = @Simple Second
|
||||
@@ -1,29 +0,0 @@
|
||||
FILE: Annotations.kt
|
||||
@FILE:R|annotations/Simple|()
|
||||
@R|annotations/WithInt|(STUB) public abstract class First {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
@R|annotations/Simple|() public abstract function foo(@R|annotations/WithString|(STUB) arg: @R|annotations/Simple|() R|kotlin/Double|): R|kotlin/Unit|
|
||||
|
||||
@R|annotations/Complex|(STUB, STUB) public abstract property v(val): R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
}
|
||||
@R|annotations/WithString|(STUB) public final class Second : @R|annotations/WithInt|(STUB) R|test/First| {
|
||||
public constructor(y: R|kotlin/Char|): super<@R|annotations/WithInt|(STUB) R|test/First|>()
|
||||
|
||||
public final property y(val): R|kotlin/Char|
|
||||
public get(): R|kotlin/Char|
|
||||
|
||||
public final override function foo(arg: R|kotlin/Double|): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final override property v(val): R|kotlin/String|
|
||||
@R|annotations/Simple|() public get(): R|kotlin/String| {
|
||||
STUB
|
||||
}
|
||||
|
||||
@R|annotations/WithString|(STUB) public constructor(): this<R|test/Second|>()
|
||||
|
||||
}
|
||||
@R|annotations/WithInt|(STUB) @R|annotations/WithInt|(STUB) public final typealias Third = @R|annotations/Simple|() R|test/Second|
|
||||
@@ -1,7 +0,0 @@
|
||||
package b
|
||||
|
||||
import c.C
|
||||
|
||||
open class B : C() {
|
||||
open class NestedInB : NestedInC()
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package c
|
||||
|
||||
open class C {
|
||||
open class NestedInC
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package a
|
||||
|
||||
import b.B
|
||||
|
||||
class A : B() {
|
||||
class NestedInA1 : NestedInB()
|
||||
class NestedInA2 : NestedInC()
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
FILE: NestedSuperType.kt
|
||||
public final class A : R|b/B| {
|
||||
public constructor(): super<R|b/B|>()
|
||||
|
||||
public final class NestedInA1 : R|b/B.NestedInB| {
|
||||
public constructor(): super<R|b/B.NestedInB|>()
|
||||
|
||||
}
|
||||
|
||||
public final class NestedInA2 : R|c/C.NestedInC| {
|
||||
public constructor(): super<R|c/C.NestedInC|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package b
|
||||
|
||||
class A
|
||||
|
||||
typealias TA = A
|
||||
|
||||
// analyzePriority: 1
|
||||
@@ -1,7 +0,0 @@
|
||||
package a
|
||||
|
||||
import b.TA
|
||||
|
||||
class MyClass : TA()
|
||||
|
||||
// analyzePriority: 0
|
||||
@@ -1,5 +0,0 @@
|
||||
FILE: TypeAliasExpansion.kt
|
||||
public final class MyClass : R|b/TA = b/A| {
|
||||
public constructor(): super<R|b/TA = b/A|>()
|
||||
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package test
|
||||
|
||||
sealed class Test {
|
||||
object O : Test()
|
||||
|
||||
class Extra(val x: Int): Test
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package other
|
||||
|
||||
import test.Test.*
|
||||
|
||||
abstract class Factory {
|
||||
abstract fun createTest(): Test
|
||||
|
||||
abstract fun createObj(): O
|
||||
|
||||
abstract fun createExtra(): Extra
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
FILE: sealedStarImport.kt
|
||||
public abstract class Factory {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
public abstract function createTest(): R|error: Symbol not found|
|
||||
|
||||
public abstract function createObj(): R|test/Test.O|
|
||||
|
||||
public abstract function createExtra(): R|test/Test.Extra|
|
||||
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
package b
|
||||
|
||||
abstract class MyClass
|
||||
@@ -1,4 +0,0 @@
|
||||
package a
|
||||
import b.MyClass as HisClass
|
||||
|
||||
class YourClass : HisClass()
|
||||
@@ -1,5 +0,0 @@
|
||||
FILE: simpleAliasedImport.kt
|
||||
public final class YourClass : R|b/MyClass| {
|
||||
public constructor(): super<R|b/MyClass|>()
|
||||
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
package b
|
||||
|
||||
abstract class MyClass
|
||||
@@ -1,4 +0,0 @@
|
||||
package a
|
||||
import b.MyClass
|
||||
|
||||
class YourClass : MyClass()
|
||||
@@ -1,5 +0,0 @@
|
||||
FILE: simpleImport.kt
|
||||
public final class YourClass : R|b/MyClass| {
|
||||
public constructor(): super<R|b/MyClass|>()
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package a
|
||||
|
||||
class MyClass {
|
||||
open class MyNested
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package b
|
||||
|
||||
import a.MyClass.MyNested
|
||||
|
||||
class YourClass : MyNested()
|
||||
@@ -1,5 +0,0 @@
|
||||
FILE: simpleImportNested.kt
|
||||
public final class YourClass : R|a/MyClass.MyNested| {
|
||||
public constructor(): super<R|a/MyClass.MyNested|>()
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package a
|
||||
|
||||
class Outer {
|
||||
open class Nested
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package b
|
||||
|
||||
import a.Outer
|
||||
|
||||
class My : Outer.Nested()
|
||||
@@ -1,5 +0,0 @@
|
||||
FILE: simpleImportOuter.kt
|
||||
public final class My : R|a/Outer.Nested| {
|
||||
public constructor(): super<R|a/Outer.Nested|>()
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package b.d
|
||||
|
||||
expect interface Other
|
||||
|
||||
expect class Another
|
||||
@@ -1,5 +0,0 @@
|
||||
package a.d
|
||||
|
||||
import b.d.*
|
||||
|
||||
fun foo(arg: Other): Another
|
||||
@@ -1,2 +0,0 @@
|
||||
FILE: simpleStarImport.kt
|
||||
public final function foo(arg: R|b/d/Other|): R|b/d/Another|
|
||||
@@ -1,7 +0,0 @@
|
||||
abstract class Base(val s: String)
|
||||
|
||||
class Outer {
|
||||
class Derived(s: String) : Base(s)
|
||||
|
||||
object Obj : Base("")
|
||||
}
|
||||
-22
@@ -1,22 +0,0 @@
|
||||
FILE: nestedClass.kt
|
||||
public abstract class Base {
|
||||
public constructor(s: R|kotlin/String|): super<R|kotlin/Any|>()
|
||||
|
||||
public final property s(val): R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
}
|
||||
public final class Outer {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
public final class Derived : R|Base| {
|
||||
public constructor(s: R|kotlin/String|): super<R|Base|>()
|
||||
|
||||
}
|
||||
|
||||
public final object Obj : R|Base| {
|
||||
public constructor(): super<R|Base|>()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
interface SomeInterface {
|
||||
fun foo(x: Int, y: String): String
|
||||
|
||||
val bar: Boolean
|
||||
}
|
||||
|
||||
class SomeClass : SomeInterface {
|
||||
private val baz = 42
|
||||
|
||||
override fun foo(x: Int, y: String): String {
|
||||
return y + x + baz
|
||||
}
|
||||
|
||||
override var bar: Boolean
|
||||
get() = true
|
||||
set(value) {}
|
||||
|
||||
var fau: Double
|
||||
}
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
FILE: simpleClass.kt
|
||||
public abstract interface SomeInterface {
|
||||
public abstract function foo(x: R|kotlin/Int|, y: R|kotlin/String|): R|kotlin/String|
|
||||
|
||||
public abstract property bar(val): R|kotlin/Boolean|
|
||||
public get(): R|kotlin/Boolean|
|
||||
|
||||
}
|
||||
public final class SomeClass : R|SomeInterface| {
|
||||
public constructor(): super<R|kotlin/Any|>()
|
||||
|
||||
private final property baz(val): R|error: Not supported: FirImplicitTypeImpl| = STUB
|
||||
private get(): R|error: Not supported: FirImplicitTypeImpl|
|
||||
|
||||
public final override function foo(x: R|kotlin/Int|, y: R|kotlin/String|): R|kotlin/String| {
|
||||
}
|
||||
|
||||
public final override property bar(var): R|kotlin/Boolean|
|
||||
public get(): R|kotlin/Boolean| {
|
||||
STUB
|
||||
}
|
||||
public set(value: R|kotlin/Boolean|): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final property fau(var): R|kotlin/Double|
|
||||
public get(): R|kotlin/Double|
|
||||
public set(value: R|kotlin/Double|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user