FIR checker: introduce top-level function checker

This commit is contained in:
Jinseong Jeon
2021-01-19 15:09:00 -08:00
committed by Mikhail Glukhikh
parent df68f319bc
commit 9341ca3004
15 changed files with 59 additions and 11 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ package MyPackage
abstract val e3: Int = 0; get() = a
//methods
fun f()
<!NON_MEMBER_FUNCTION_NO_BODY!>fun f()<!>
fun g() {}
abstract fun h()
abstract fun j() {}
@@ -6,4 +6,4 @@ abstract class Abst {
abstract fun foo(x: Int = <!UNRESOLVED_REFERENCE!>y<!>, y: Int = x)
}
fun extraDiagnostics(x: Int = <!UNRESOLVED_REFERENCE!>y<!>, y: Int)
<!NON_MEMBER_FUNCTION_NO_BODY!>fun extraDiagnostics(x: Int = <!UNRESOLVED_REFERENCE!>y<!>, y: Int)<!>
@@ -1 +1,2 @@
// FIR_IDENTICAL
<!NON_MEMBER_FUNCTION_NO_BODY!>fun bar()<!>
@@ -7,6 +7,6 @@ expect fun foo()
// MODULE: m2-jvm(m1-common)
// FILE: jvm.kt
actual fun foo()
<!NON_MEMBER_FUNCTION_NO_BODY!>actual fun foo()<!>
actual fun bar()
<!NON_MEMBER_FUNCTION_NO_BODY!>actual fun bar()<!>