Skip to content

Commit f1b2c96

Browse files
author
EnzeXing
committed
Removing assertions in call and eval
1 parent de3bd81 commit f1b2c96

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/src/dotty/tools/dotc/transform/init/Objects.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ object Objects:
647647
else
648648
Env.resolveEnv(meth.owner.enclosingMethod, ref, summon[Env.Data]).getOrElse(Cold -> Env.NoEnv)
649649

650-
assert(thisV.isInstanceOf[ValueElement], "thisV = " + thisV)
651650
val env2 = Env.of(ddef, args.map(_.value), outerEnv)
652651
extendTrace(ddef) {
653652
given Env.Data = env2
@@ -994,7 +993,6 @@ object Objects:
994993
* @param cacheResult It is used to reduce the size of the cache.
995994
*/
996995
def eval(expr: Tree, thisV: ValueElement, klass: ClassSymbol, cacheResult: Boolean = false): Contextual[Value] = log("evaluating " + expr.show + ", this = " + thisV.show + ", regions = " + Regions.show + " in " + klass.show, printer, (_: Value).show) {
997-
// assert(thisV.isInstanceOf[ValueElement], "thisV is not ValueElement, " + "evaluating " + expr.show + ", this = " + thisV.show)
998996
cache.cachedEval(thisV, expr, cacheResult) { expr => cases(expr, thisV, klass) }
999997
}
1000998

0 commit comments

Comments
 (0)