We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2793795 commit 7448376Copy full SHA for 7448376
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -321,9 +321,11 @@ object desugar {
321
val preciseMap : Map[TypeName, Boolean] = ignoreErrorsAndRun {
322
meth.leadingTypeParams.map(t =>
323
(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
+ try
+ val typedAnnot = ctx.typer.typedExpr(a)
+ if (typedAnnot.denot == NoDenotation) false
327
+ else typedAnnot.symbol.owner == defn.PreciseAnnot
328
+ catch case e: Throwable => false
329
})
330
).toMap
331
}
0 commit comments