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

Zinc does not consider implicit in default namespace #616

Open
avdv opened this issue Nov 19, 2018 · 1 comment
Open

Zinc does not consider implicit in default namespace #616

avdv opened this issue Nov 19, 2018 · 1 comment
Assignees

Comments

@avdv
Copy link
Contributor

avdv commented Nov 19, 2018

Inside the default namespace, implicit resolution does consider implicits defined in a package object in the default namespace too.

But zinc seems to rule out implicits those implicits and compilation fails.

Here's a minimal sample project: https://github.com/avdv/zinc-default-namespace-bug

@Friendseeker
Copy link
Member

Friendseeker commented Dec 7, 2023

@SethTisue I am unfamiliar with Scala compiler, would you say this is a compiler issue?

As in OP's reproduction, Foo is invalidated after Foo is changed, but nothing depends on Foo, so Zinc seems to be doing its job by just invalidating Foo.

Rather Scala Compiler should successfully find implicit value for bar instead of throwing could not find implicit value for parameter bar.

eed3si9n added a commit that referenced this issue Dec 19, 2023
@Friendseeker Friendseeker self-assigned this Dec 19, 2023
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