Added diagnostic error when in function declaration name was omitted
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: TTTTT
|
||||
// ERROR: Function declaration must have a name
|
||||
|
||||
fun () {
|
||||
val tttt : TTTTT = null
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// "Remove explicitly specified function return type" "true"
|
||||
// ERROR: Function declaration must have a name
|
||||
fun () {
|
||||
return<caret>
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
// "Remove explicitly specified function return type" "true"
|
||||
// ERROR: Function declaration must have a name
|
||||
fun (): Int {
|
||||
return<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user