summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2012-12-10 12:22:27 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2012-12-10 12:22:27 -0800
commit3b2a4ac04b8d3879d1545849680f718599288677 (patch)
tree075ad3054f8f4f5cf689e5dd3183d15b19365ecc /test
parentc702483d43d6805e4e1591fe307ddceb1768d64a (diff)
parent5f2b7c4c36f96f955573c4ac322b8ca6d632abc1 (diff)
downloadscala-3b2a4ac04b8d3879d1545849680f718599288677.tar.gz
scala-3b2a4ac04b8d3879d1545849680f718599288677.tar.bz2
scala-3b2a4ac04b8d3879d1545849680f718599288677.zip
Merge pull request #1729 from JamesIry/SI-5789-2_2.10.x
SI-5789 Removes assertion about implclass flag in Mixin.scala
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t5789.check14
-rw-r--r--test/files/run/t5789.scala14
2 files changed, 28 insertions, 0 deletions
diff --git a/test/files/run/t5789.check b/test/files/run/t5789.check
new file mode 100644
index 0000000000..ea8d4966b1
--- /dev/null
+++ b/test/files/run/t5789.check
@@ -0,0 +1,14 @@
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala>
+
+scala> val n = 2
+n: Int = 2
+
+scala> () => n
+res0: () => Int = <function0>
+
+scala>
+
+scala>
diff --git a/test/files/run/t5789.scala b/test/files/run/t5789.scala
new file mode 100644
index 0000000000..461f6a4aae
--- /dev/null
+++ b/test/files/run/t5789.scala
@@ -0,0 +1,14 @@
+
+import scala.tools.nsc._
+import interpreter.ILoop
+import scala.tools.partest.ReplTest
+
+
+object Test extends ReplTest {
+ override def extraSettings = "-Yinline"
+ def code = """
+ val n = 2
+ () => n
+ """
+}
+