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,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>
}