Files
kotlin-fork/idea/testData/formatter/EmptyBlocks.kt
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

41 lines
422 B
Kotlin

class Test {}
class Other {
default object {}
}
object TestObject {}
val testVal = {}
val testObject = object {}
fun foo(f: (String) -> Unit = {}) = {}
fun call() {
foo({})
foo {}
}
class Test1 {
}
class Other1 {
default object {
}
}
object TestObject1 {
}
val testVal1 = { }
val testObject1 = object {
}
fun foo1(f: (String) -> Unit = { }) = { }
fun call1() {
foo1({ })
foo1 { }
}