summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2012-08-09 07:43:13 -0700
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-08-09 07:43:13 -0700
commit0e2080e8bf1c54cac59c5b0c53a93eb0de009d3b (patch)
tree319d9aedfd9518d798ffbcc9add182b5e397fec2 /test/files/pos
parent5a180b7abfa806046968968226ce8cde281d6a3f (diff)
parent1dfa502280ecb126a146a3b5443e3864182dc7f9 (diff)
downloadscala-0e2080e8bf1c54cac59c5b0c53a93eb0de009d3b.tar.gz
scala-0e2080e8bf1c54cac59c5b0c53a93eb0de009d3b.tar.bz2
scala-0e2080e8bf1c54cac59c5b0c53a93eb0de009d3b.zip
Merge pull request #1094 from scalamacros/ticket/6204
fixes to existential-related reification problems
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t5756.scala6
-rw-r--r--test/files/pos/t6204-a.scala9
-rw-r--r--test/files/pos/t6204-b.scala10
3 files changed, 25 insertions, 0 deletions
diff --git a/test/files/pos/t5756.scala b/test/files/pos/t5756.scala
new file mode 100644
index 0000000000..45960fa8bd
--- /dev/null
+++ b/test/files/pos/t5756.scala
@@ -0,0 +1,6 @@
+import scala.reflect.runtime.universe._
+
+object Test extends App {
+ def tagme[T: TypeTag](x: T) = typeTag[T]
+ val foo = tagme{object Bar; Bar}
+} \ No newline at end of file
diff --git a/test/files/pos/t6204-a.scala b/test/files/pos/t6204-a.scala
new file mode 100644
index 0000000000..bd8d5c437e
--- /dev/null
+++ b/test/files/pos/t6204-a.scala
@@ -0,0 +1,9 @@
+import scala.reflect.runtime.universe._
+
+object Bish {
+ def m {
+ object Bash {
+ typeOf[Option[_]]
+ }
+ }
+} \ No newline at end of file
diff --git a/test/files/pos/t6204-b.scala b/test/files/pos/t6204-b.scala
new file mode 100644
index 0000000000..86094d1a19
--- /dev/null
+++ b/test/files/pos/t6204-b.scala
@@ -0,0 +1,10 @@
+import scala.reflect.runtime.universe._
+
+object Bosh {
+ def Besh {
+ new {
+ val t = typeOf[Option[_]]
+ val x = t
+ }
+ }
+} \ No newline at end of file