-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Package private method cannot be matched using quotes API #15676
Labels
Milestone
Comments
WojciechMazur
added
itype:bug
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Jul 14, 2022
mbovel
added
area:metaprogramming:quotes
Issues related to quotes and splices
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Jul 15, 2022
How can I reproduce? I tried |
@mbovel Sorry, I forget to include the second file that actually uses the macro. I've updated the issue reproducer |
Minimizedpackage foo
import scala.quoted.*
private[foo] object Foo:
def apply(): Int = ???
inline def test(): Unit = ${ testExpr() }
private def testExpr()(using Quotes): Expr[Unit] = {
'{ Foo() } match
case '{ Foo() } =>
'{}
} // usage.scala
def Test() = foo.test() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Community build regression for https://github.com/ciaraobrien/dottytags (maintainer @CiaraOBrien)
Based on Open Community Build #1858
Part of #15647 regressions tracker
Compiler version
Works with 3.1.0
Fails in 3.1.1
Fails in 3.2.1-RC1-bin-20220712-7e20b81-NIGHTLYon` instead).
Minimized code
Output
Expectation
Compiles with the same output as in 3.1.0:
The text was updated successfully, but these errors were encountered: