Skip to content

Catch cyclic annotations #1212

Closed
Closed
@odersky

Description

@odersky

This file will lead to a stackoverflow when unpickling it from Tasty:

@ann class ann extends scala.annotation.Annotation

To reproduce:

dotc -Ytest-pickler -Ystop-after:pickler -Xprint-types cyclic-annotations.scala

It's probably best if we outlaw cyclic annotations like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions