File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ class CycleChecker(cache: Cache) {
247247 val effs = pot.potentialsOf(dep.symbol)(using env).promote(dep.source)
248248
249249 val errs = effs.flatMap(Checking .check(_)(using state))
250- assert( errs.isEmpty, " unexpected errors: " + Errors .show(errs.toList) )
250+ errs.foreach(_.issue )
251251
252252 val deps = state.dependencies.toList
253253 proxyCache(dep.symbol) = deps
@@ -364,7 +364,7 @@ class CycleChecker(cache: Cache) {
364364 val effs = pot.effectsOf(dep.symbol)(using env)
365365
366366 val errs = effs.flatMap(Checking .check(_)(using state))
367- assert( errs.isEmpty, " unexpected errors: " + Errors .show(errs.toList) + " while analyzing " + dep.show )
367+ errs.foreach(_.issue )
368368
369369 state.dependencies.toList
370370 }
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ object Errors {
116116
117117 case class CallUnknown (meth : Symbol , source : Tree , trace : Seq [Tree ]) extends Error {
118118 def show (using Context ): String =
119- " Calling the external method " + meth.show + " may cause initialization errors " + " ."
119+ " Unable to analyze external " + meth.show + " ."
120120 }
121121
122122 /** Promote a value under initialization to fully-initialized */
You can’t perform that action at this time.
0 commit comments