Skip to content

-Wconf:origin= unimplemented #19582

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
som-snytt opened this issue Jan 31, 2024 · 2 comments
Closed

-Wconf:origin= unimplemented #19582

som-snytt opened this issue Jan 31, 2024 · 2 comments

Comments

@som-snytt
Copy link
Contributor

Compiler version

3.4.x

Minimized code

scala -Xlint -Wconf:origin='scala.collection.JavaConverters.*':s
Welcome to Scala 2.13.12 (OpenJDK 64-Bit Server VM, Java 21.0.2).
Type in expressions for evaluation. Or try :help.

scala> class C { import scala.collection.JavaConverters._ }
class C

scala> class C { import collection.JavaConverters._; def f(xs: java.util.List[String]) = xs.asScala }
class C

Output

Warning suppression of unused import and deprecated usage.

Expectation

Parity in Scala 3.

The origin filter is especially handy because import clauses do not receive annotations such as nowarn.

https://discord.com/channels/632277896739946517/839243149745455174/1202305289479528478

@som-snytt som-snytt added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Jan 31, 2024
@SethTisue
Copy link
Member

Duplicate of #17538?

@som-snytt
Copy link
Contributor Author

@SethTisue thanks I only saw src fsr.

@som-snytt som-snytt closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
@SethTisue SethTisue added stat:duplicate and removed stat:needs triage Every issue needs to have an "area" and "itype" label itype:bug labels Feb 1, 2024
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