Skip to content

inspectTypeRepr does not support FlexibleTypes #597

Description

@HarrisL2

Issue minimized from a run of the Open Community Build

When using izumi-reflect in newer scala versions, the following error is emitted.

java.lang.RuntimeException: TYPEREPR, UNSUPPORTED: class dotty.tools.dotc.core.Types$FlexibleType - FlexibleType(OrType(TypeRef(ThisType(TypeRef(NoPrefix,module class api)),trait RedissonClient),TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Null)),TypeRef(ThisType(TypeRef(NoPrefix,module class api)),trait RedissonClient))

This error is emitted from

case o =>
log(s"TYPEREPR UNSUPPORTED: $o")
throw new RuntimeException(s"TYPEREPR, UNSUPPORTED: ${o.getClass} - $o")

and can be fixed by adding a new case for FlexibleType and recursing on the underlying type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions