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

Quasiquotes do not pattern match Java static method #9404

Closed
scabug opened this issue Jul 17, 2015 · 3 comments
Closed

Quasiquotes do not pattern match Java static method #9404

scabug opened this issue Jul 17, 2015 · 3 comments

Comments

@scabug
Copy link

scabug commented Jul 17, 2015

I am writing a Wart Remover plugin, and running Wart Remover as a Scala compiler plugin. I was not able to get the following quasiquote pattern match to match an actual call to System.getProperty:

tree match { 
  case q"java.lang.System.getProperty($_)" => ???
}
@scabug
Copy link
Author

scabug commented Jul 17, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9404?orig=1
Reporter: Robin Green (ST_robin_green)
Affected Versions: 2.11.7

@scabug
Copy link
Author

scabug commented Jul 17, 2015

Robin Green (ST_robin_green) said:
Workaround

@SethTisue
Copy link
Member

closing all quasiquotes tickets; see #10755

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

3 participants