Skip to content

Commit 94ed64b

Browse files
committed
Add @sharable annotation
1 parent 0f74d39 commit 94ed64b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/core/Contexts.scala

+3-2
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,8 @@ object Contexts {
700700
myBounds = myBounds.updated(sym, b)
701701
def bounds = myBounds
702702
}
703-
object EmptyGADTMap extends GADTMap(SimpleMap.Empty) {
704-
override def setBounds(sym: Symbol, b: TypeBounds) = unsupported("EmptyGADTMap.setBound")
703+
704+
@sharable object EmptyGADTMap extends GADTMap(SimpleMap.Empty) {
705+
override def setBounds(sym: Symbol, b: TypeBounds) = unsupported("EmptyGADTMap.setBounds")
705706
}
706707
}

0 commit comments

Comments
 (0)