Skip to content

Commit

Permalink
Merge pull request #310 from mccartney/removing-redundant-213-check
Browse files Browse the repository at this point in the history
[minor] removing redundant 213 check
  • Loading branch information
mccartney authored Mar 15, 2020
2 parents ec0cc25 + 9e6a970 commit c5ab723
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ class PredefSeqIsMutable
import context.global._

override def inspect(tree: Tree): Unit = {
if (!isScala213) {
tree match {
case DefDef(_, _, _, _, _, _) if tree.symbol.isAccessor =>
case TypeTree() if tree.tpe.erasure.toString() == "Seq[Any]" =>
context.warn(tree.pos, self)
case _ => continue(tree)
}
tree match {
case DefDef(_, _, _, _, _, _) if tree.symbol.isAccessor =>
case TypeTree() if tree.tpe.erasure.toString() == "Seq[Any]" =>
context.warn(tree.pos, self)
case _ => continue(tree)
}
}
}
Expand Down

0 comments on commit c5ab723

Please sign in to comment.