summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/bug4558.scala6
-rw-r--r--test/files/run/bug4617.check1
-rw-r--r--test/files/run/bug4617.scala15
-rw-r--r--test/files/run/t4560.check1
-rw-r--r--test/files/run/t4560.scala16
-rw-r--r--test/files/run/t4608.scala11
6 files changed, 50 insertions, 0 deletions
diff --git a/test/files/run/bug4558.scala b/test/files/run/bug4558.scala
new file mode 100644
index 0000000000..e7661421dc
--- /dev/null
+++ b/test/files/run/bug4558.scala
@@ -0,0 +1,6 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ val xs = Seq(1,2,3).view.groupBy(identity)
+ assert(xs.size == 3)
+ }
+}
diff --git a/test/files/run/bug4617.check b/test/files/run/bug4617.check
new file mode 100644
index 0000000000..6bbcce30eb
--- /dev/null
+++ b/test/files/run/bug4617.check
@@ -0,0 +1 @@
+Str 8.0
diff --git a/test/files/run/bug4617.scala b/test/files/run/bug4617.scala
new file mode 100644
index 0000000000..2fea5e29ec
--- /dev/null
+++ b/test/files/run/bug4617.scala
@@ -0,0 +1,15 @@
+object Test {
+ def f1 = new { def f { lazy val d = 0d } }
+ def f2 = {
+ lazy val d = 4D
+ lazy val f = 4f
+
+ def bar = "Str " + (d + f)
+ bar
+ }
+
+ def main(args: Array[String]): Unit = {
+ f1
+ println(f2)
+ }
+}
diff --git a/test/files/run/t4560.check b/test/files/run/t4560.check
index 7ed6ff82de..fd3c81a4d7 100644
--- a/test/files/run/t4560.check
+++ b/test/files/run/t4560.check
@@ -1 +1,2 @@
5
+5
diff --git a/test/files/run/t4560.scala b/test/files/run/t4560.scala
index f1eb5d4169..f809e67898 100644
--- a/test/files/run/t4560.scala
+++ b/test/files/run/t4560.scala
@@ -16,8 +16,24 @@ trait B {
}
}
+class A2
+
+trait B2 {
+ self: A2 =>
+
+ def test {
+ import Pimper.pimp
+
+ println(5.test)
+ }
+}
+
object Test extends A with B {
def main(args: Array[String]) {
test
+ Test2.test
}
}
+
+object Test2 extends A2 with B2
+
diff --git a/test/files/run/t4608.scala b/test/files/run/t4608.scala
new file mode 100644
index 0000000000..a25d2fea05
--- /dev/null
+++ b/test/files/run/t4608.scala
@@ -0,0 +1,11 @@
+
+
+
+// #4608
+object Test {
+
+ def main(args: Array[String]) {
+ ((1 to 100) sliding 10).toList.par.map{_.map{i => i * i}}.flatten
+ }
+
+}