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 fdcef4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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) {

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

0 comments on commit fdcef4c

Please sign in to comment.