diff options
author | Martin Odersky <odersky@gmail.com> | 2015-03-08 22:02:22 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-18 11:16:37 +0100 |
commit | 5962a931c83622ce065bc1ce9add049ade89bfcf (patch) | |
tree | 24851bbc76f1ca537456715c44a9f866a5c00668 /tests/pickling/tryTyping.scala | |
parent | 19bfc0c6c9be9c4c3fdca55480e01e980a493b42 (diff) | |
download | dotty-5962a931c83622ce065bc1ce9add049ade89bfcf.tar.gz dotty-5962a931c83622ce065bc1ce9add049ade89bfcf.tar.bz2 dotty-5962a931c83622ce065bc1ce9add049ade89bfcf.zip |
Pickling test reorg
Move pickling tests into separate top-level test directory.
That way they are not needlessly pos-tested before.
Also, disable core tests for now - after rebasing we get a stale symbol error.
Need to investigate that.
Diffstat (limited to 'tests/pickling/tryTyping.scala')
-rw-r--r-- | tests/pickling/tryTyping.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/pickling/tryTyping.scala b/tests/pickling/tryTyping.scala new file mode 100644 index 000000000..a2aeb17c8 --- /dev/null +++ b/tests/pickling/tryTyping.scala @@ -0,0 +1,20 @@ +object tryTyping{ + def foo: Int = { + try{???; 1} + catch { + case e: Exception => 2 + } + } + + def foo2: Int = { + val a2: (Throwable => Int) = _ match {case _ => 2} + try{???; 1} + catch a2 + } + + def foo3: Int = { + val a3: (Int => Throwable => Int) = (b: Int) => _ match {case _ => b} + try{???; 1} + catch a3(3) + } +}
\ No newline at end of file |