diff options
Diffstat (limited to 'src/dotty/tools/dotc/ast/TreeInfo.scala')
-rw-r--r-- | src/dotty/tools/dotc/ast/TreeInfo.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/ast/TreeInfo.scala b/src/dotty/tools/dotc/ast/TreeInfo.scala index 2d14e6dab..cfb175e0b 100644 --- a/src/dotty/tools/dotc/ast/TreeInfo.scala +++ b/src/dotty/tools/dotc/ast/TreeInfo.scala @@ -37,10 +37,10 @@ abstract class TreeInfo { */ def isIdempotentDef(tree: Tree[Type])(implicit ctx: Context): Boolean = tree match { case EmptyTree - | ClassDef(_, _, _, _) - | TypeDef(_, _, _, _) - | Import(_, _) - | DefDef(_, _, _, _, _, _) => + | ClassDef(_, _, _) + | TypeDef(_, _, _, _) + | Import(_, _) + | DefDef(_, _, _, _, _, _) => true case ValDef(mods, _, _, rhs) => !(mods is Mutable) && isIdempotentExpr(rhs) |