Skip to content

Import of symbolic identifiers does not work #530

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
odersky opened this issue May 4, 2015 · 0 comments
Closed

Import of symbolic identifiers does not work #530

odersky opened this issue May 4, 2015 · 0 comments

Comments

@odersky
Copy link
Contributor

odersky commented May 4, 2015

Example:

object P {
  def !#@ : Nothing = ???
}

object Test {
  import P.!#@
  def f = !#@
}

gives:

importSymbolic.scala:10: error: not found: !#@

  def f = !#@
          ^
one error found

The problem is that import selectors are untyped trees, and therefore do not undergo decoding of symbolic characters. The problem will be fixed once we move decoding into a late phase.

odersky added a commit to dotty-staging/dotty that referenced this issue May 4, 2015
DottyPredef needs to be compiled with -Yno-imports because it would
clash otherwise with the DottyPredef in the root context.

Note that ??? has to be written in fully qualified form because of scala#530.
odersky added a commit to dotty-staging/dotty that referenced this issue May 4, 2015
smarter added a commit to dotty-staging/dotty that referenced this issue Feb 8, 2016
smarter added a commit to dotty-staging/dotty that referenced this issue Feb 9, 2016
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