Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/parsing/Tokens.scala
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ object Tokens extends TokensCommon {

final val closingParens = BitSet(RPAREN, RBRACKET, RBRACE)

final val softModifierNames = Set(nme.inline, nme.into, nme.opaque, nme.open, nme.transparent, nme.infix, nme.update)
final val softModifierNames = Set(nme.inline, nme.into, nme.opaque, nme.open, nme.transparent, nme.infix)
// Note: update, consume and erased are missing here since they are only modifiers under some import

def showTokenDetailed(token: Int): String = debugString(token)

Expand Down
4 changes: 4 additions & 0 deletions tests/neg/i24371.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class M extends caps.Mutable:
update def foo = () // error // error