Skip to content

REPL: importing an annotation does not seem to bring it in scope #2462

Closed
@smarter

Description

@smarter

This might be the same bug as #2109, I'm not sure:

scala> import scala.annotation.unspecialized 
import scala.annotation.unspecialized
scala> class Foo[@unspecialized T] 
-- [E006] Unbound Identifier Error: <console>:4:11 -----------------------------
4 |class Foo[@unspecialized T]
  |           ^^^^^^^^^^^^^
  |           not found: type unspecialized

longer explanation available when compiling with `-explain`
scala> class Foo[@scala.annotation.unspecialized T] 
defined class Foo

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