Allow empty blocks for classes and function literals

This commit is contained in:
Nikolay Krasko
2014-05-13 19:25:43 +04:00
parent 3d588acd2d
commit b958e0d6b8
121 changed files with 240 additions and 244 deletions
@@ -0,0 +1,41 @@
class Test {}
class Other {
class object {}
}
object TestObject {}
val testVal = {}
val testObject = object {}
fun foo(f: (String) -> Unit = {}) = {}
fun call() {
foo({})
foo {}
}
class Test1 {
}
class Other1 {
class object {
}
}
object TestObject1 {
}
val testVal1 = { }
val testObject1 = object {
}
fun foo1(f: (String) -> Unit = { }) = { }
fun call1() {
foo1({ })
foo1 { }
}