Get rid of module reflection.stub.jvm
Generate K*Function as a supertype for a function reference instead of K*FunctionImpl; this will allow one binary library to be used with or without reflection
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="reflection" />
|
||||
</component>
|
||||
</module>
|
||||
+4
-3
@@ -14,9 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package kotlin.reflect.jvm.internal;
|
||||
package kotlin.jvm.internal
|
||||
|
||||
import kotlin.jvm.internal.FunctionImpl;
|
||||
import java.io.Serializable
|
||||
|
||||
public abstract class KFunctionImpl extends FunctionImpl {
|
||||
public abstract class MemberFunctionImpl<in T, out R> : Serializable {
|
||||
override fun toString() = "${(this as Object).getClass().getGenericInterfaces()[0]}"
|
||||
}
|
||||
Reference in New Issue
Block a user