diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t5738.scala | 8 | ||||
-rw-r--r-- | test/files/pos/t5742.scala | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t5738.scala b/test/files/pos/t5738.scala new file mode 100644 index 0000000000..b8755ed66e --- /dev/null +++ b/test/files/pos/t5738.scala @@ -0,0 +1,8 @@ +import scala.reflect.runtime.universe._ + +object Test extends App { + def f[T](a: T, b: T) = { + reify(a.toString + b) + reify(a + b.toString) + } +}
\ No newline at end of file diff --git a/test/files/pos/t5742.scala b/test/files/pos/t5742.scala new file mode 100644 index 0000000000..3d3125b5d3 --- /dev/null +++ b/test/files/pos/t5742.scala @@ -0,0 +1,8 @@ +import scala.reflect.runtime.universe._ + +object Test extends App { + def foo[T](a: T) = reify { + val x1 = a + val x2 = reify(a) + } +}
\ No newline at end of file |