From 476a617bfb35aa6867d0ab5518d62fc7901c4484 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Mon, 27 Nov 2023 14:43:12 +0100 Subject: [PATCH] Cache `Attributes.empty` --- compiler/src/dotty/tools/dotc/core/tasty/Attributes.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/core/tasty/Attributes.scala b/compiler/src/dotty/tools/dotc/core/tasty/Attributes.scala index 3a7124320470..8f815981e68d 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/Attributes.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/Attributes.scala @@ -22,5 +22,5 @@ object Attributes: new Attributes(booleanTags.result()) end apply - def empty: Attributes = + val empty: Attributes = new Attributes(BitSet.empty)