FIR checker: introduce member function checker

This commit is contained in:
Jinseong Jeon
2021-01-14 11:49:57 -08:00
committed by Mikhail Glukhikh
parent 5594af0d70
commit 39df3e2b0a
20 changed files with 102 additions and 51 deletions
@@ -1,23 +0,0 @@
// !LANGUAGE: +MultiPlatformProjects
// MODULE: m1-common
// FILE: common.kt
interface Foo {
fun foo()
}
expect class NonAbstractClass : Foo {
abstract fun bar()
<!ABSTRACT_PROPERTY_IN_NON_ABSTRACT_CLASS!>abstract<!> val baz: Int
abstract override fun foo()
}
expect abstract class AbstractClass : Foo {
abstract fun bar()
abstract val baz: Int
abstract override fun foo()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !LANGUAGE: +MultiPlatformProjects
// MODULE: m1-common
// FILE: common.kt
@@ -3,7 +3,7 @@
// FILE: common.kt
class Foo {
expect fun bar(): String
<!NON_ABSTRACT_FUNCTION_WITH_NO_BODY!>expect fun bar(): String<!>
}
// MODULE: m1-jvm(m1-common)
@@ -9,7 +9,7 @@ class Outer expect constructor() {
expect init {}
expect fun foo()
<!NON_ABSTRACT_FUNCTION_WITH_NO_BODY!>expect fun foo()<!>
expect val bar: Int
}