Skip to content
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

macro is a reserved word, disallow usage as identifier #8052

Closed
scabug opened this issue Dec 8, 2013 · 3 comments
Closed

macro is a reserved word, disallow usage as identifier #8052

scabug opened this issue Dec 8, 2013 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Dec 8, 2013

It has been deprecated in 2.10:

soc@desktop ~ % Entwicklung/lib/scala-2.10.3/bin/scala -deprecation
Welcome to Scala version 2.10.3 (OpenJDK 64-Bit Server VM, Java 1.7.0_25).
Type in expressions to have them evaluated.
Type :help for more information.

scala> val macro = null
<console>:1: warning: macro is now a reserved word; usage as an identifier is deprecated
       val macro = null
           ^
<console>:7: warning: macro is now a reserved word; usage as an identifier is deprecated
       val macro = null
           ^
macro: Null = null

It's time to disallow it for 2.11.

@scabug
Copy link
Author

@scabug scabug commented Dec 8, 2013

Imported From: https://issues.scala-lang.org/browse/SI-8052?orig=1
Reporter: @soc
Affected Versions: 2.11.0-M7

@scabug
Copy link
Author

@scabug scabug commented Dec 8, 2013

@xeno-by said:
Should I submit a pull request?

@scabug
Copy link
Author

@scabug scabug commented Dec 9, 2013

@soc said:
I'm already on it: scala/scala#3239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants