diff options
Diffstat (limited to 'tests/run/t3935.scala')
-rw-r--r-- | tests/run/t3935.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run/t3935.scala b/tests/run/t3935.scala new file mode 100644 index 000000000..84e39571c --- /dev/null +++ b/tests/run/t3935.scala @@ -0,0 +1,15 @@ + + + + +object Test { + def main(args: Array[String]): Unit = { + val q = scala.collection.mutable.Queue[String]() + assert(q.length == 0) + try { + assert(q.front != null) + } catch { + case _: Throwable => + } + } +} |