Skip to content

Commit

Permalink
bugfix: Check instead of throwing AssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Jan 5, 2024
1 parent abcf921 commit 5b51c22
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ object MetalsInteractive:
// Note: this overapproximates visibility a bit, since value parameters are only visible
// in subsequent parameter sections
localCtx
case tree: MemberDef =>
assert(tree.symbol.exists)
case tree: MemberDef if tree.symbol.exists =>
outer.localContext(tree, tree.symbol)
case tree @ Block(stats, expr) =>
val localCtx = outer.fresh.setNewScope
Expand Down

0 comments on commit 5b51c22

Please sign in to comment.