Skip to content

@unchecked fails to compile when annotation.unchecked package imported #2170

Closed
@allanrenucci

Description

@allanrenucci
import annotation.unchecked

@unchecked
class Test

Compiles with scalac but not with dotty

-- Error: tests/tmp/Test.scala -------------------------------------------------
3 |@unchecked
  |^^^^^^^^^^
  |annotation.unchecked does not have a constructor

Removing the import fixes the problem

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions