diff options
author | Olivier Blanvillain <olivier.blanvillain@gmail.com> | 2016-09-15 09:39:50 +0200 |
---|---|---|
committer | Olivier Blanvillain <olivier.blanvillain@gmail.com> | 2016-09-15 09:39:50 +0200 |
commit | 20bf35ffb9ffef5356e75bd12a5ef1c3be896e05 (patch) | |
tree | a0924941182e22def3d2ff2ff0627fc294f8eb68 /tests/run | |
parent | 3f3df3d8f7638eb5cca9ae8162f8388373c912c6 (diff) | |
download | dotty-20bf35ffb9ffef5356e75bd12a5ef1c3be896e05.tar.gz dotty-20bf35ffb9ffef5356e75bd12a5ef1c3be896e05.tar.bz2 dotty-20bf35ffb9ffef5356e75bd12a5ef1c3be896e05.zip |
Move t1335 test from /pos to /run
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/t1335.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/t1335.scala b/tests/run/t1335.scala new file mode 100644 index 000000000..047f7b566 --- /dev/null +++ b/tests/run/t1335.scala @@ -0,0 +1,11 @@ +case class MyTuple(a: Int, b: Int) + +object Test { + def main(args: Array[String]): Unit = + try { + val mt: MyTuple = null + val MyTuple(a, b) = mt + } catch { + case e: MatchError => () + } +} |