Skip to content

Commit

Permalink
Drop redundant expandThrowsAlias
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Sep 7, 2023
1 parent 5fcd976 commit 81de544
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/src/dotty/tools/dotc/cc/Setup.scala
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ extends tpd.TreeTraverser:
isTopLevel = false
try ts.mapConserve(this) finally isTopLevel = saved

def apply(t: Type) =
val tp = expandThrowsAlias(t)
def apply(tp: Type) =
val tp1 = tp match
case AnnotatedType(parent, annot) if annot.symbol == defn.RetainsAnnot =>
// Drop explicit retains annotations
Expand Down

0 comments on commit 81de544

Please sign in to comment.