@@ -589,15 +589,15 @@ object Semantic:
589
589
Hot
590
590
else
591
591
if ref.klass.isSubClass(receiver.widenSingleton.classSymbol) then
592
- report.error (" [Internal error] Unexpected resolution failure: ref.klass = " + ref.klass.show + " , field = " + field.show + Trace .show, Trace .position)
592
+ report.warning (" [Internal error] Unexpected resolution failure: ref.klass = " + ref.klass.show + " , field = " + field.show + Trace .show, Trace .position)
593
593
Hot
594
594
else
595
595
// This is possible due to incorrect type cast.
596
596
// See tests/init/pos/Type.scala
597
597
Hot
598
598
599
599
case fun : Fun =>
600
- report.error (" [Internal error] unexpected tree in selecting a function, fun = " + fun.expr.show + Trace .show, fun.expr)
600
+ report.warning (" [Internal error] unexpected tree in selecting a function, fun = " + fun.expr.show + Trace .show, fun.expr)
601
601
Hot
602
602
603
603
case RefSet (refs) =>
@@ -725,7 +725,7 @@ object Semantic:
725
725
value.select(target, receiver, needResolve = false )
726
726
else
727
727
if ref.klass.isSubClass(receiver.widenSingleton.classSymbol) then
728
- report.error (" [Internal error] Unexpected resolution failure: ref.klass = " + ref.klass.show + " , meth = " + meth.show + Trace .show, Trace .position)
728
+ report.warning (" [Internal error] Unexpected resolution failure: ref.klass = " + ref.klass.show + " , meth = " + meth.show + Trace .show, Trace .position)
729
729
Hot
730
730
else
731
731
// This is possible due to incorrect type cast.
@@ -755,7 +755,7 @@ object Semantic:
755
755
756
756
value match {
757
757
case Hot | Cold | _ : RefSet | _ : Fun =>
758
- report.error (" [Internal error] unexpected constructor call, meth = " + ctor + " , value = " + value + Trace .show, Trace .position)
758
+ report.warning (" [Internal error] unexpected constructor call, meth = " + ctor + " , value = " + value + Trace .show, Trace .position)
759
759
Hot
760
760
761
761
case ref : Warm if ref.isPopulatingParams =>
@@ -862,7 +862,7 @@ object Semantic:
862
862
warm
863
863
864
864
case Fun (body, thisV, klass) =>
865
- report.error (" [Internal error] unexpected tree in instantiating a function, fun = " + body.show + Trace .show, Trace .position)
865
+ report.warning (" [Internal error] unexpected tree in instantiating a function, fun = " + body.show + Trace .show, Trace .position)
866
866
Hot
867
867
868
868
case RefSet (refs) =>
@@ -882,7 +882,7 @@ object Semantic:
882
882
case Hot => Hot
883
883
case ref : Ref => ref.objekt.field(sym)
884
884
case _ =>
885
- report.error (" [Internal error] unexpected this value accessing local variable, sym = " + sym.show + " , thisValue = " + thisValue2.show + Trace .show, Trace .position)
885
+ report.warning (" [Internal error] unexpected this value accessing local variable, sym = " + sym.show + " , thisValue = " + thisValue2.show + Trace .show, Trace .position)
886
886
Hot
887
887
else if sym.is(Flags .Param ) then
888
888
Hot
@@ -900,7 +900,7 @@ object Semantic:
900
900
case ref : Ref => eval(vdef.rhs, ref, enclosingClass, cacheResult = sym.is(Flags .Lazy ))
901
901
902
902
case _ =>
903
- report.error (" [Internal error] unexpected this value when accessing local variable, sym = " + sym.show + " , thisValue = " + thisValue2.show + Trace .show, Trace .position)
903
+ report.warning (" [Internal error] unexpected this value when accessing local variable, sym = " + sym.show + " , thisValue = " + thisValue2.show + Trace .show, Trace .position)
904
904
Hot
905
905
end match
906
906
@@ -1040,7 +1040,7 @@ object Semantic:
1040
1040
//
1041
1041
// This invariant holds because of the Scala/Java/JVM restriction that we cannot use `this` in super constructor calls.
1042
1042
if subClassSegmentHot && ! isHotSegment then
1043
- report.error (" [Internal error] Expect current segment to be transitively initialized (Hot) in promotion, current klass = " + klass.show +
1043
+ report.warning (" [Internal error] Expect current segment to be transitively initialized (Hot) in promotion, current klass = " + klass.show +
1044
1044
" , subclass = " + subClass.show + Trace .show, Trace .position)
1045
1045
1046
1046
// If the outer and parameters of a class are all hot, then accessing fields and methods of the current
@@ -1374,7 +1374,7 @@ object Semantic:
1374
1374
Hot
1375
1375
1376
1376
case _ =>
1377
- report.error (" [Internal error] unexpected tree" + Trace .show, expr)
1377
+ report.warning (" [Internal error] unexpected tree" + Trace .show, expr)
1378
1378
Hot
1379
1379
1380
1380
/** Handle semantics of leaf nodes
@@ -1418,7 +1418,7 @@ object Semantic:
1418
1418
Hot
1419
1419
1420
1420
case _ =>
1421
- report.error (" [Internal error] unexpected type " + tp + Trace .show, Trace .position)
1421
+ report.warning (" [Internal error] unexpected type " + tp + Trace .show, Trace .position)
1422
1422
Hot
1423
1423
}
1424
1424
@@ -1439,14 +1439,14 @@ object Semantic:
1439
1439
val outerCls = klass.owner.lexicallyEnclosingClass.asClass
1440
1440
if ! obj.hasOuter(klass) then
1441
1441
val error = " [Internal error] outer not yet initialized, target = " + target + " , klass = " + klass + " , object = " + obj + Trace .show
1442
- report.error (error, Trace .position)
1442
+ report.warning (error, Trace .position)
1443
1443
Hot
1444
1444
else
1445
1445
resolveThis(target, obj.outer(klass), outerCls)
1446
1446
case RefSet (refs) =>
1447
1447
refs.map(ref => resolveThis(target, ref, klass)).join
1448
1448
case fun : Fun =>
1449
- report.error (" [Internal error] unexpected thisV = " + thisV + " , target = " + target.show + " , klass = " + klass.show + Trace .show, Trace .position)
1449
+ report.warning (" [Internal error] unexpected thisV = " + thisV + " , target = " + target.show + " , klass = " + klass.show + Trace .show, Trace .position)
1450
1450
Cold
1451
1451
case Cold => Cold
1452
1452
0 commit comments