Files
kotlin-fork/plugins/uast-kotlin/testData/SuperCalls.kt
T
Nicolay Mitropolsky 54285d328f Uast: KotlinIDERenderLogTest for running UAST tests with ULC
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
2020-01-14 19:48:40 +03:00

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) {}