54285d328f
In case of result difference the `-ide`-suffixed testdata is used. Actually the difference in results is more likely to be a bug but currently we are fixating at least some behaviour to protect from unexpected regressions in Ultra Light Classes. `object Local` were removed because there is no local objects in actual Kotlin syntax
33 lines
520 B
Kotlin
Vendored
33 lines
520 B
Kotlin
Vendored
open class A(val str: String) {
|
|
|
|
constructor(i: Int) : this(i.toString())
|
|
|
|
open fun foo(a: Long) {}
|
|
|
|
}
|
|
|
|
class B(param: String) : A(param)
|
|
|
|
class C : A {
|
|
constructor(p: String) : super(p)
|
|
|
|
constructor(i: Int) : super(i) {
|
|
println()
|
|
}
|
|
|
|
override fun foo(a: Long) {
|
|
super.foo(a)
|
|
}
|
|
}
|
|
|
|
object O : A("text")
|
|
|
|
val anon = object : A("textForAnon") {
|
|
fun bar() {
|
|
cons(object : A("inner literal") { })
|
|
}
|
|
|
|
inner class InnerClass : A("inner class")
|
|
}
|
|
|
|
fun cons(a: A) {} |