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 5e05d3f commit 762ebbfCopy full SHA for 762ebbf
compiler/src/dotty/tools/dotc/ast/TreeInfo.scala
@@ -273,14 +273,16 @@ trait UntypedTreeInfo extends TreeInfo[Untyped] { self: Trees.Instance[Untyped]
273
case _ => false
274
}
275
276
- def isFunctionWithUnknownParamType(tree: Tree) = tree match {
+ def isFunctionWithUnknownParamType(tree: Tree): Boolean = tree match {
277
case Function(args, _) =>
278
args.exists {
279
case ValDef(_, tpt, _) => tpt.isEmpty
280
281
282
case Match(EmptyTree, _) =>
283
true
284
+ case Block(Nil, expr) =>
285
+ isFunctionWithUnknownParamType(expr)
286
287
288
0 commit comments