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
@@ -12,6 +12,6 @@ public class Nameless {
import p.*
class K : <!INVISIBLE_MEMBER!>Nameless<!>() {
fun<!SYNTAX!><!> () {}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {}
val<!SYNTAX!><!> : Int = 1
}
}
@@ -1,7 +1,7 @@
// !DIAGNOSTICS: -REDECLARATION
class C {
fun<!SYNTAX!><!> () {
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {
}
@@ -2,7 +2,7 @@
package<!SYNTAX!><!>
fun<!SYNTAX!><!> () {
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {
}