Added diagnostic error when in function declaration name was omitted

This commit is contained in:
Stanislav Erokhin
2015-02-05 19:45:24 +03:00
parent a8536fef9b
commit 560c32c0f1
19 changed files with 128 additions and 14 deletions
@@ -1,4 +1,8 @@
fun<!SYNTAX!><!> () {
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {
}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun Outer.()<!> {
}
@@ -25,7 +29,7 @@ annotation class<!SYNTAX!><!> <!ANNOTATION_CLASS_WITH_BODY!>{
}<!>
class Outer {
fun<!SYNTAX!><!> () {
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {
}
@@ -50,4 +54,14 @@ class Outer {
<!REDECLARATION!>annotation class<!SYNTAX!><!> <!ANNOTATION_CLASS_WITH_BODY!>{
}<!><!>
}
}
fun outerFun() {
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {
}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {
}
}