Skip to content

Commit

Permalink
Add @sharable annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Oct 3, 2017
1 parent 0f74d39 commit 94ed64b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compiler/src/dotty/tools/dotc/core/Contexts.scala
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,8 @@ object Contexts {
myBounds = myBounds.updated(sym, b)
def bounds = myBounds
}
object EmptyGADTMap extends GADTMap(SimpleMap.Empty) {
override def setBounds(sym: Symbol, b: TypeBounds) = unsupported("EmptyGADTMap.setBound")

@sharable object EmptyGADTMap extends GADTMap(SimpleMap.Empty) {
override def setBounds(sym: Symbol, b: TypeBounds) = unsupported("EmptyGADTMap.setBounds")
}
}

0 comments on commit 94ed64b

Please sign in to comment.