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:
Alexander Udalov
2017-02-15 11:06:56 +03:00
parent 41f7950ab8
commit 46bd64f59a
9 changed files with 262 additions and 16 deletions
@@ -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) {}