Added diagnostic error when in function declaration name was omitted
This commit is contained in:
@@ -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 ()<!> {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ package
|
||||
|
||||
internal val <no name provided>: kotlin.Int = 1
|
||||
internal fun <no name provided>(): kotlin.Unit
|
||||
internal fun outerFun(): kotlin.Unit
|
||||
internal fun Outer.<no name provided>(): kotlin.Unit
|
||||
|
||||
internal final class <no name provided> {
|
||||
internal constructor <no name provided>()
|
||||
|
||||
Reference in New Issue
Block a user