FIR checker: introduce FunctionChecker alias

and use it to add support diagnostic FUNCTION_DECLARATION_WITH_NO_NAME
This commit is contained in:
Jinseong Jeon
2021-01-15 23:21:24 -08:00
committed by Mikhail Glukhikh
parent 40bec30393
commit de592f4f67
17 changed files with 66 additions and 52 deletions
@@ -1,9 +1,9 @@
// !DIAGNOSTICS: -DUPLICATE_CLASS_NAMES
fun () {
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {
}
fun Outer.() {
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun Outer.()<!> {
}
@@ -30,7 +30,7 @@ annotation class<!SYNTAX!><!> {
}
class Outer {
fun () {
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {
}