File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,10 @@ private final class NormalizeMap(implicit ctx: Context) extends TypeMap {
136
136
* error otherwise.
137
137
*/
138
138
private def defUnfolder (fnSym : Symbol ): Unfolder = {
139
- assert(fnSym.isTerm && fnSym.isDependentMethod && fnSym.hasAnnotation(defn.BodyAnnot ), s " Tried to illegally unfold $fnSym with flags " )
139
+ assert(fnSym.isTerm, s " Tried to illegally unfold $fnSym which is not a term " )
140
+ assert(fnSym.isDependentMethod, s " Tried to illegally unfold non dependent method $fnSym" )
141
+ assert(fnSym.hasAnnotation(defn.BodyAnnot ), s " Tried to illegally unfold $fnSym with no body annotation " )
142
+
140
143
val body : Tree = fnSym.getAnnotation(defn.BodyAnnot ) match {
141
144
case Some (annot) =>
142
145
if (annot.isEvaluating)
You can’t perform that action at this time.
0 commit comments