Files
kotlin-fork/idea/testData/refactoring/extractFunction/parameters/misc/classObject.kt.after
T
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

20 lines
239 B
Plaintext

// SIBLING:
class MyClass {
fun test(): Int {
return i()
}
default object {
val coProp = 1
fun coFun() {
}
}
}
private fun i(): Int {
MyClass.coFun()
return MyClass.coProp + 10
}