-- Common --
Exit code: OK
Output:
compiler/testData/multiplatform/classScopes/functionIncorrectSignature/common.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. Consider using the '-Xexpect-actual-classes' flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
expect class Foo {
^^^^^^

-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/classScopes/functionIncorrectSignature/jvm.kt:2:16: error: the 'expect' and the 'actual' declarations are incompatible.
  expect: public final expect fun function(b: ByteArray): Int
  actual: public final actual fun function(b: ByteArray): Long
  reason: the return types are different
    actual fun function(b: ByteArray): Long = b.size.toLong()
               ^^^^^^^^
