Skip to content

Commit 5c06bd4

Browse files
committed
add test for macro mixing
1 parent e1a136a commit 5c06bd4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/pos-macros/i16630.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import scala.language.experimental.macros
2+
3+
trait TraitWithTypeParam[A] {
4+
protected inline def foo: Option[A] = ${ ??? }
5+
protected def foo: Option[A] = macro ???
6+
}

0 commit comments

Comments
 (0)