Rename FunctionImpl -> FunctionBase, restore abstract class FunctionImpl
This fixes the IncompatibleClassChangeError which happens when kotlin-reflect 1.0.x and kotlin-stdlib 1.1.x are in the classpath #KT-16358 In Progress
This commit is contained in:
+2
-2
@@ -4,10 +4,10 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.jvm.internal.FunctionImpl
|
||||
import kotlin.jvm.internal.FunctionBase
|
||||
|
||||
fun test(f: Function<*>, arity: Int) {
|
||||
assertEquals(arity, (f as FunctionImpl).getArity())
|
||||
assertEquals(arity, (f as FunctionBase).getArity())
|
||||
}
|
||||
|
||||
fun foo(s: String, i: Int) {}
|
||||
|
||||
Reference in New Issue
Block a user