diff --git a/test/tasty/run/src-2/tastytest/TestValueOfErasure.scala b/test/tasty/run/src-2/tastytest/TestValueOfErasure.scala new file mode 100644 index 000000000000..05287a247992 --- /dev/null +++ b/test/tasty/run/src-2/tastytest/TestValueOfErasure.scala @@ -0,0 +1,7 @@ +package tastytest + +object TestValueOfErasure extends Suite("TestValueOfErasure") { + + test(assert(ValueOfErasure.reify[23] === 23)) + +} diff --git a/test/tasty/run/src-3/tastytest/ValueOfErasure.scala b/test/tasty/run/src-3/tastytest/ValueOfErasure.scala new file mode 100644 index 000000000000..2e07ac5256fe --- /dev/null +++ b/test/tasty/run/src-3/tastytest/ValueOfErasure.scala @@ -0,0 +1,5 @@ +package tastytest + +object ValueOfErasure { + def reify[I <: Int](implicit I: ValueOf[I]): I = valueOf[I] +}