Skip to content

Commit 7448376

Browse files
committed
attempting to catch other unexpected errors
1 parent 2793795 commit 7448376

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,11 @@ object desugar {
321321
val preciseMap : Map[TypeName, Boolean] = ignoreErrorsAndRun {
322322
meth.leadingTypeParams.map(t =>
323323
(t.name, t.mods.annotations.exists {a =>
324-
val typedAnnot = ctx.typer.typedExpr(a)
325-
if (typedAnnot.denot == NoDenotation) false
326-
else typedAnnot.symbol.owner == defn.PreciseAnnot
324+
try
325+
val typedAnnot = ctx.typer.typedExpr(a)
326+
if (typedAnnot.denot == NoDenotation) false
327+
else typedAnnot.symbol.owner == defn.PreciseAnnot
328+
catch case e: Throwable => false
327329
})
328330
).toMap
329331
}

0 commit comments

Comments
 (0)