Skip to content

Commit

Permalink
Cleanup dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperFKorban committed Oct 18, 2024
1 parent ebe1ceb commit 72d4d35
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions compiler/src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1717,10 +1717,6 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
typedFunctionType(desugar.makeFunctionWithValDefs(tree, pt), pt)
else
val funSym = defn.FunctionSymbol(numArgs, isContextual, isImpure)
// val args1 = args.mapConserve {
// case cb: untpd.ContextBoundTypeTree => typed(cb)
// case t => t
// }
val result = typed(cpy.AppliedTypeTree(tree)(untpd.TypeTree(funSym.typeRef), args :+ body), pt)
// if there are any erased classes, we need to re-do the typecheck.
result match
Expand Down

0 comments on commit 72d4d35

Please sign in to comment.