Skip to content

Commit 4bf4cb8

Browse files
committed
Remove assertion
This assertion is too strong in some we have an under-constrained expression for which the error has still not been emitted.
1 parent 0709e6c commit 4bf4cb8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,10 +1184,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
11841184
val baseType = tree.tpe.baseType(defn.QuotedExprClass)
11851185
val argType =
11861186
if (baseType != NoType) baseType.argTypesHi.head
1187-
else {
1188-
assert(ctx.reporter.hasErrors)
1189-
defn.NothingType
1190-
}
1187+
else defn.NothingType
11911188
ref(defn.InternalQuoted_exprSplice).appliedToType(argType).appliedTo(tree)
11921189
}
11931190
def unapply(tree: Tree)(implicit ctx: Context): Option[Tree] = tree match {

0 commit comments

Comments
 (0)