Skip to content

Issue migration warning for @compileTimeOnly #6312

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
liufengyun opened this issue Apr 15, 2019 · 0 comments
Closed

Issue migration warning for @compileTimeOnly #6312

liufengyun opened this issue Apr 15, 2019 · 0 comments

Comments

@liufengyun
Copy link
Contributor

As discussed in #6308 and #4863, when there is need for @compileTimeOnly in Scala2:

@compileTimeOnly("some message") val res = ???
res

The same semantics can be achieved by the following code in Dotty:

scala.compiletime.error("some message")
@nicolasstucki nicolasstucki self-assigned this May 2, 2019
nicolasstucki added a commit that referenced this issue May 2, 2019
Fix #6312: Add migration warning for @compileTimeOnly
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

2 participants