summaryrefslogtreecommitdiff
path: root/test/files/run/t7747-repl.check
diff options
context:
space:
mode:
authorPrashant Sharma <scrapcodes@gmail.com>2015-06-10 10:38:54 +0530
committerPrashant Sharma <scrapcodes@gmail.com>2015-06-10 11:51:45 +0530
commit39a5e1aed93f7b1483802a0248295229d711e072 (patch)
treedc036c74edb9b096060a2696d9fab2239a7f3fb4 /test/files/run/t7747-repl.check
parentdb114aa44efe63763a883dcf07d667fe7d744ff6 (diff)
downloadscala-39a5e1aed93f7b1483802a0248295229d711e072.tar.gz
scala-39a5e1aed93f7b1483802a0248295229d711e072.tar.bz2
scala-39a5e1aed93f7b1483802a0248295229d711e072.zip
SI-7747 More tests and logic according to our conclusions on #4522.
Diffstat (limited to 'test/files/run/t7747-repl.check')
-rw-r--r--test/files/run/t7747-repl.check14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/files/run/t7747-repl.check b/test/files/run/t7747-repl.check
index af47f23c62..5f436ba6b1 100644
--- a/test/files/run/t7747-repl.check
+++ b/test/files/run/t7747-repl.check
@@ -284,6 +284,18 @@ object $read extends scala.AnyRef {
}
res3: List[Product with Serializable] = List(BippyBups(), PuppyPups(), Bingo())
+scala> case class Sum(exp: String, exp2: String)
+defined class Sum
+
+scala> val a = Sum("A", "B")
+a: Sum = Sum(A,B)
+
+scala> def b(a: Sum): String = a match { case Sum(_, _) => "Found Sum" }
+b: (a: Sum)String
+
+scala> b(a)
+res4: String = Found Sum
+
scala> :power
** Power User mode enabled - BEEP WHIR GYVE **
** :phase has been set to 'typer'. **
@@ -292,6 +304,6 @@ scala> :power
** Try :help, :vals, power.<tab> **
scala> intp.lastRequest
-res4: $r.intp.Request = Request(line=def $ires3 = intp.global, 1 trees)
+res5: $r.intp.Request = Request(line=def $ires3 = intp.global, 1 trees)
scala> :quit