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 3b574ea commit b4a0d3fCopy full SHA for b4a0d3f
compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
@@ -308,7 +308,7 @@ class TreeChecker extends Phase with SymTransformer {
308
309
override def typedIdent(tree: untpd.Ident, pt: Type)(implicit ctx: Context): Tree = {
310
assert(tree.isTerm || !ctx.isAfterTyper, tree.show + " at " + ctx.phase)
311
- assert(tree.isType || !needsSelect(tree.tpe), i"bad type ${tree.tpe} for $tree # ${tree.uniqueId}")
+ assert(tree.isType || ctx.mode.is(Mode.Pattern) && untpd.isWildcardArg(tree) || !needsSelect(tree.tpe), i"bad type ${tree.tpe} for $tree # ${tree.uniqueId}")
312
assertDefined(tree)
313
314
checkNotRepeated(super.typedIdent(tree, pt))
0 commit comments