aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2015-11-20 07:08:30 +0800
committerSimon Hafner <hafnersimon@gmail.com>2015-11-20 07:09:05 +0800
commit8a438f2ccb6ad6361b5356f47c6f035001633fd0 (patch)
treee1d70e56e471c4575736838bc6a4d69fd7aba2d3 /test/dotc/tests.scala
parentea1373b32db36c0596c36d53e91e967a31ad682f (diff)
downloaddotty-8a438f2ccb6ad6361b5356f47c6f035001633fd0.tar.gz
dotty-8a438f2ccb6ad6361b5356f47c6f035001633fd0.tar.bz2
dotty-8a438f2ccb6ad6361b5356f47c6f035001633fd0.zip
Fixed != comparison
By linter: comparing values of types Char and String using `!=' will always yield true
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 22981b837..c07b966c6 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -175,7 +175,7 @@ class tests extends CompilerTest {
val stdlibFiles = Source.fromFile("./test/dotc/scala-collections.whitelist", "UTF8").getLines()
.map(_.trim) // allow identation
.filter(!_.startsWith("#")) // allow comment lines prefixed by #
- .map(_.takeWhile(_ != "#").trim) // allow comments in the end of line
+ .map(_.takeWhile(_ != '#').trim) // allow comments in the end of line
.filter(_.nonEmpty)
.toList