KT-1138 Need better diagnostic for case when method/constructor call is followed by class initializer or simple block

This commit is contained in:
Andrey Breslav
2012-02-22 11:51:19 +04:00
parent 62ddef4734
commit b46e20c5c3
7 changed files with 195 additions and 3 deletions
@@ -13,5 +13,5 @@ fun test() {
v1({}, <!ERROR_COMPILE_TIME_VALUE!>1<!>, {})
v1({}, {}, {it})
v1({}) <!VARARG_OUTSIDE_PARENTHESES!>{}<!>
v1 <!VARARG_OUTSIDE_PARENTHESES!>{}<!>
v1 <!VARARG_OUTSIDE_PARENTHESES, DANGLING_FUNCTION_LITERAL_ARGUMENT_SUSPECTED!>{}<!>
}