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 3375ba3 commit b00335fCopy full SHA for b00335f
compiler/src/dotty/tools/dotc/ast/tpd.scala
@@ -1251,7 +1251,9 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
1251
1252
/** Check if the limit on the number of inlined trees has been reached */
1253
def reachedInlinedTreesLimit(implicit ctx: Context): Boolean =
1254
- ctx.property(InlinedTrees).fold(0)(_.count) > ctx.settings.XmaxInlinedTrees.value
+ ctx.property(InlinedTrees) match
1255
+ case Some(n) => n > ctx.settings.XmaxInlinedTrees.value
1256
+ case None => false
1257
1258
/** The source file where the symbol of the `inline` method referred to by `call`
1259
* is defined
0 commit comments