Skip to content

String interpolator does not work with opaque types #12473

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
b-studios opened this issue May 14, 2021 · 1 comment
Closed

String interpolator does not work with opaque types #12473

b-studios opened this issue May 14, 2021 · 1 comment

Comments

@b-studios
Copy link
Contributor

This might be a duplicate of #7092 and might be related to #11493.

Compiler version

Scala 3.0-RC3

Minimized code

import scala.annotation.implicitNotFound

object bugreport {
  @implicitNotFound("Could not find ${A}")
  opaque type F[A] = A
}

def foo = summon[bugreport.F[Int]]

Output

Could not find 

Expectation

Could not find Int
@b-studios
Copy link
Contributor Author

I opened this individually of #7092 since the behavior was different. But now I verified that there is no difference between opaque types and types. Both do not work in the same way -- so closing this issue again.

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

1 participant