Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
smarter opened this issue May 17, 2017 · 0 comments
Closed

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

smarter opened this issue May 17, 2017 · 0 comments

Comments

@smarter
Copy link
Member

smarter commented May 17, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant