diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-03-16 21:17:50 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-03-20 15:05:20 +0100 |
commit | f45dbe7e3722f0c6a814c8afd8481690ac5f1d2c (patch) | |
tree | aa8482ea127d43525fb3ffc29e823f5631ec1d7d /doc-tool | |
parent | b2af166bce00b9712f554b588527ca0c4f7544ec (diff) | |
download | dotty-f45dbe7e3722f0c6a814c8afd8481690ac5f1d2c.tar.gz dotty-f45dbe7e3722f0c6a814c8afd8481690ac5f1d2c.tar.bz2 dotty-f45dbe7e3722f0c6a814c8afd8481690ac5f1d2c.zip |
doc-tool/test: Workaround #2112
Diffstat (limited to 'doc-tool')
-rw-r--r-- | doc-tool/test/JavaConverterTest.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc-tool/test/JavaConverterTest.scala b/doc-tool/test/JavaConverterTest.scala index 79730215c..f9046a891 100644 --- a/doc-tool/test/JavaConverterTest.scala +++ b/doc-tool/test/JavaConverterTest.scala @@ -155,7 +155,8 @@ class JavaConverterTest { } def assertEach[E, C[E] <: Seq[E]](expected: C[E], serialized: Any)(pairwiseAssertion: (E, Any) => Unit): Unit = { - val actual = serialized.asInstanceOf[JList[_]].asScala.toList + val s = serialized.asInstanceOf[JList[_]] + val actual = s.asScala.toList assertEquals(expected.length, actual.length) for ((exp, act) <- expected zip actual) { pairwiseAssertion(exp, act) |