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 0709e6c commit 4bf4cb8Copy full SHA for 4bf4cb8
compiler/src/dotty/tools/dotc/ast/tpd.scala
@@ -1184,10 +1184,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
1184
val baseType = tree.tpe.baseType(defn.QuotedExprClass)
1185
val argType =
1186
if (baseType != NoType) baseType.argTypesHi.head
1187
- else {
1188
- assert(ctx.reporter.hasErrors)
1189
- defn.NothingType
1190
- }
+ else defn.NothingType
1191
ref(defn.InternalQuoted_exprSplice).appliedToType(argType).appliedTo(tree)
1192
}
1193
def unapply(tree: Tree)(implicit ctx: Context): Option[Tree] = tree match {
0 commit comments