Skip to content

Commit

Permalink
Fix #415: Allow ClassTypeParamSymbols to have a UniqueName.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrd committed Dec 5, 2023
1 parent 06ffbf0 commit d16ccdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasty-query/shared/src/main/scala/tastyquery/Symbols.scala
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ object Symbols {
type DefiningTreeType <: TypeDef | TypeTreeBind
type MatchingSymbolType = TypeSymbol

if name.toTermName.isInstanceOf[UniqueName] && !this.isInstanceOf[LocalTypeParamSymbol] then
if name.toTermName.isInstanceOf[UniqueName] && !this.isInstanceOf[TypeParamSymbol] then
throw UnsupportedOperationException(s"${this.displayFullName: @unchecked} -- ${name.toDebugString}")

override final def localRef: TypeRef =
Expand Down

0 comments on commit d16ccdd

Please sign in to comment.