Skip to content

REPL Completion picks up implied members imported without the implied modifier #6361

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
anatoliykmetyuk opened this issue Apr 23, 2019 · 1 comment · Fixed by #14618
Closed

Comments

@anatoliykmetyuk
Copy link
Contributor

scala> object foo { implied bar for Int = 10 }
// defined object foo

scala> import foo._

scala> ba

If you press TAB after ba, it will autocomplete to bar. If you press ENTER afterwards:

scala> bar
1 |bar
  |^^^
  |Not found: bar

Can be related to #5074 and #5895, the former one dealing with the imports and the latter one dealing with the completion.

@anatoliykmetyuk anatoliykmetyuk self-assigned this May 2, 2019
@anatoliykmetyuk anatoliykmetyuk removed their assignment Nov 24, 2020
griggt added a commit to griggt/dotty that referenced this issue Mar 3, 2022
@griggt
Copy link
Contributor

griggt commented Mar 3, 2022

This no longer seems to be an issue:

Welcome to Scala 3.1.2-RC1 (1.8.0_292, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.

scala> object foo { given bar: Int = 10 }
// defined object foo

scala> import foo.*

scala> ba                  <no completions>

griggt added a commit to griggt/dotty that referenced this issue Mar 7, 2022
anatoliykmetyuk added a commit that referenced this issue Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants