Implement typeOf intrinsic on JVM
#KT-29915 Fixed
This commit is contained in:
@@ -18,8 +18,13 @@ package kotlin.reflect.jvm.internal;
|
||||
|
||||
import kotlin.jvm.internal.*;
|
||||
import kotlin.reflect.*;
|
||||
import kotlin.reflect.full.KClassifiers;
|
||||
import kotlin.reflect.jvm.ReflectLambdaKt;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @suppress
|
||||
*/
|
||||
@@ -111,6 +116,13 @@ public class ReflectionFactoryImpl extends ReflectionFactory {
|
||||
return owner instanceof KDeclarationContainerImpl ? ((KDeclarationContainerImpl) owner) : EmptyContainerForLocal.INSTANCE;
|
||||
}
|
||||
|
||||
// typeOf
|
||||
|
||||
@Override
|
||||
public KType typeOf(KClassifier klass, List<KTypeProjection> arguments, boolean isMarkedNullable) {
|
||||
return KClassifiers.createType(klass, arguments, isMarkedNullable, Collections.<Annotation>emptyList());
|
||||
}
|
||||
|
||||
// Misc
|
||||
|
||||
public static void clearCaches() {
|
||||
|
||||
Reference in New Issue
Block a user