Skip to content

Commit 8d90e51

Browse files
committed
Failing test for scala#13942
1 parent 4025951 commit 8d90e51

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

tests/run-macros/i13942.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO

tests/run-macros/i13942/Macro_1.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import scala.quoted.*
2+
3+
import dotty.tools.dotc.core.Types.UnspecifiedErrorType
4+
5+
inline def testShowErrType: Unit = ${ testShowErrTypeImpl }
6+
7+
def testShowErrTypeImpl(using q: Quotes): Expr[Unit] = {
8+
import q.reflect.*
9+
10+
val tpe = UnspecifiedErrorType.asInstanceOf[TypeRepr]
11+
val repr = tpe.show
12+
13+
'{ println(${Expr(repr)}) }
14+
}

tests/run-macros/i13942/Test_2.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@main def Test = testShowErrType

0 commit comments

Comments
 (0)