Files
kotlin/idea/testData/resolve/referenceInJava/dependencies.kt
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00

51 lines
753 B
Kotlin

package k
import kotlin.platform.platformStatic
public class Class() {
public val prop: Int = 0
fun function() = 1
}
public enum class EnumClass {
ENTRY
}
public fun topLevelFun() {
}
public class ClassWithClassObject {
default object {
fun f() = 1
}
}
public object KotlinObject {
fun f() = 1
}
public trait StaticFieldInClassObjectInTrait {
default object {
public val XX: String = "xx"
}
}
object PlatformStaticFun {
platformStatic
fun test() {
}
}
trait TraitNoImpl {
fun foo()
}
public class TraitWithDelegatedNoImpl(f: TraitNoImpl): TraitNoImpl by f
trait TraitWithImpl {
fun foo() = 1
}
public class TraitWithDelegatedWithImpl(f: TraitWithImpl): TraitWithImpl by f