summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/code-pos.log6
-rw-r--r--test/files/pos/t4716.scala10
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/code-pos.log b/test/files/pos/code-pos.log
new file mode 100644
index 0000000000..cdfc8f194c
--- /dev/null
+++ b/test/files/pos/code-pos.log
@@ -0,0 +1,6 @@
+code.scala:16: error: type mismatch;
+ found : reflect.runtime.Mirror.Tree
+ required: reflect.package.mirror.Tree
+ val ttree = toolbox.typeCheck(tree, targetType)
+ ^
+one error found
diff --git a/test/files/pos/t4716.scala b/test/files/pos/t4716.scala
new file mode 100644
index 0000000000..ec29e8d2cb
--- /dev/null
+++ b/test/files/pos/t4716.scala
@@ -0,0 +1,10 @@
+
+
+
+
+trait Bug2[@specialized(Int) +A] extends TraversableOnce[A] {
+ def ++[B >: A](that: TraversableOnce[B]) = {
+ lazy val it = that.toIterator
+ it
+ }
+}