diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-08-07 20:02:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-07 20:02:04 -0700 |
commit | 62348dea92476f1bbb9d7f163f168be9c7e189b5 (patch) | |
tree | 1d6905f463fe428788ef5a275b58fc5f090fcb8c /tests/repl | |
parent | be1f099d19def5a7ecba7c52e0113dbd0f7c4944 (diff) | |
parent | 17ba94221e4e120c1442b5611f8f339c0f642c65 (diff) | |
download | dotty-62348dea92476f1bbb9d7f163f168be9c7e189b5.tar.gz dotty-62348dea92476f1bbb9d7f163f168be9c7e189b5.tar.bz2 dotty-62348dea92476f1bbb9d7f163f168be9c7e189b5.zip |
Merge pull request #1436 from cswinter/wip-repl-patdef-fix
Fix #1372: Add handler for `PatDef`s to REPL
Diffstat (limited to 'tests/repl')
-rw-r--r-- | tests/repl/patdef.check | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/repl/patdef.check b/tests/repl/patdef.check new file mode 100644 index 000000000..0cb1c6d4f --- /dev/null +++ b/tests/repl/patdef.check @@ -0,0 +1,10 @@ +scala> val Const,x = 0 +Const: Int = 0 +x: Int = 0 +scala> val (Const, List(`x`, _, a), b) = (0, List(0, 1337, 1), 2) +a: Int = 1 +b: Int = 2 +scala> val a@b = 0 +a: Int @unchecked = 0 +b: Int @unchecked = 0 +scala> :quit |