Skip to content

Commit

Permalink
Add an indirection to macro-use testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Nov 20, 2023
1 parent c7bcc06 commit 2779383
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions zinc/src/sbt-test/macros/macro-use/lib/Data2.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package lib

class Data2 extends Data
2 changes: 1 addition & 1 deletion zinc/src/sbt-test/macros/macro-use/lib/Macro.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object Macro {

def impl(c: Context)(s: c.Tree): c.Tree = {
import c.universe._
val suffix = new Data().suffix
val suffix = new Data2().suffix
q"""$s + $suffix"""
}
}

0 comments on commit 2779383

Please sign in to comment.