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

MatchError with Scala3 during macro expansion #325

Open
aboisvert opened this issue Apr 8, 2024 · 0 comments
Open

MatchError with Scala3 during macro expansion #325

aboisvert opened this issue Apr 8, 2024 · 0 comments

Comments

@aboisvert
Copy link

Trying to compile scalasql using Scala 3.4.1, the following exception is raised at compile-time:

[167/167] scalasql[3.4.1].test.compile 
[info] compiling 48 Scala sources to /home/.../git/scalasql/out/scalasql/3.4.1/test/compile.dest/classes ...
[error] -- Error: /home/.../git/scalasql/scalasql/test/src/WorldSqlTests.scala:115:20 
[error]  115 |  def tests = Tests {
[error]      |              ^
[error]      |Exception occurred while executing macro expansion.
[error]      |scala.MatchError: TypeBoundsTree(Inferred(), Inferred()) (of class java.lang.String)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformTypeTree(Quotes.scala:5072)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformTypeTree$(Quotes.scala:4927)
[error]      |	at utest.TestBuilder$testPathMap$2$.transformTypeTree(TestBuilder.scala:44)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformTree(Quotes.scala:4939)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformTree$(Quotes.scala:4927)
[error]      |	at utest.TestBuilder$testPathMap$2$.transformTree(TestBuilder.scala:44)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformStatement(Quotes.scala:4978)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformStatement$(Quotes.scala:4927)
[error]      |	at utest.TestBuilder$testPathMap$2$.transformStatement(TestBuilder.scala:44)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.$anonfun$5(Quotes.scala:4986)
[error]      |	at scala.collection.immutable.List.map(List.scala:246)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformStatement(Quotes.scala:4986)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformStatement$(Quotes.scala:4927)
[error]      |	at utest.TestBuilder$testPathMap$2$.transformStatement(TestBuilder.scala:44)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformStats$$anonfun$1(Quotes.scala:5084)
[error]      |	at scala.collection.immutable.List.mapConserve(List.scala:472)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformStats(Quotes.scala:5084)
[error]      |	at scala.quoted.Quotes$reflectModule$TreeMap.transformStats$(Quotes.scala:4927)
[error]      |	at utest.TestBuilder$testPathMap$2$.transformStats(TestBuilder.scala:44)
[error]      |	at utest.TestBuilder$.processTest(TestBuilder.scala:55)
[error]      |	at utest.TestBuilder$.buildTestsTrees$$anonfun$1(TestBuilder.scala:24)
[error]      |	at scala.collection.LinearSeqOps.foldLeft(LinearSeq.scala:183)
[error]      |	at scala.collection.LinearSeqOps.foldLeft$(LinearSeq.scala:179)
[error]      |	at scala.collection.immutable.List.foldLeft(List.scala:79)
[error]      |	at utest.TestBuilder$.buildTestsTrees(TestBuilder.scala:26)
[error]      |	at utest.TestBuilder$.processTests(TestBuilder.scala:14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant