Skip to content

DefDef cannot be cast to TypeDef #11089

Closed
@BarkingBad

Description

@BarkingBad

When traversing parents inside ClassLikeSupport, there is some strange bug coming from tasty with casting.

java.lang.ClassCastException: class dotty.tools.dotc.ast.Trees$DefDef cannot be cast to class dotty.tools.dotc.ast.Trees$TypeDef (dotty.tools.dotc.ast.Trees$DefDef and dotty.tools.dotc.ast.Trees$TypeDef are in unnamed module of loader 'app')

For now, there is workaround to catch errors and ignore them, resulting in heuristically correct graph where it can be

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions