Skip to content

Commit

Permalink
fix compilation for earlier versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed Dec 12, 2024
1 parent 976955c commit 40ffc7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class HoverProvider(
// Def, val or val definition, example `val x: Int = 1`
// Matches only if the cursor is over the definition name.
case v: ValOrDefDef if correctPosDef(v) =>
val symbol = v.symbol.getter match {
val symbol = (v.symbol.getter: Symbol) match {
case NoSymbol => v.symbol
case getter => getter
}
Expand Down Expand Up @@ -194,7 +194,7 @@ class HoverProvider(
case t @ Template(parents, self, body) =>
t.body.collectFirst {
case v: ValDef if correctPosDef(v) =>
val symbol = v.symbol.getter match {
val symbol = (v.symbol.getter: Symbol) match {
case NoSymbol => v.symbol
case getter => getter
}
Expand Down

0 comments on commit 40ffc7c

Please sign in to comment.