diff options
author | Prashant Sharma <scrapcodes@gmail.com> | 2015-06-10 10:38:54 +0530 |
---|---|---|
committer | Prashant Sharma <scrapcodes@gmail.com> | 2015-06-10 11:51:45 +0530 |
commit | 39a5e1aed93f7b1483802a0248295229d711e072 (patch) | |
tree | dc036c74edb9b096060a2696d9fab2239a7f3fb4 /test/files/run/t7747-repl.check | |
parent | db114aa44efe63763a883dcf07d667fe7d744ff6 (diff) | |
download | scala-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.check | 14 |
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 |