File tree 4 files changed +6
-4
lines changed
src/dotty/tools/dotc/typer 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,8 @@ trait Checking {
232
232
233
233
/** Check that type `tp` is stable. */
234
234
def checkStable (tp : Type , pos : Position )(implicit ctx : Context ): Unit =
235
- if (! tp.isStable) ctx.error(d " $tp is not stable " , pos)
235
+ if (! tp.isStable)
236
+ ctx.error(d " $tp is not stable " , pos)
236
237
237
238
/** Check that type `tp` is a legal prefix for '#'.
238
239
* @return The type itself
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ class Namer { typer: Typer =>
411
411
case _ =>
412
412
}
413
413
}
414
- for (mdef @ ModuleDef (name, _) <- stats) {
414
+ for (mdef @ ModuleDef (name, _) <- stats if ! mdef.mods.is( Flags . Package ) ) {
415
415
val typName = name.toTypeName
416
416
val Thicket (vdef :: (mcls @ TypeDef (_, impl : Template )) :: Nil ) = mdef.attachment(ExpandedTree )
417
417
moduleDef(typName) = mcls
Original file line number Diff line number Diff line change @@ -395,7 +395,8 @@ object RefChecks {
395
395
396
396
for (member <- missing) {
397
397
val memberSym = member.symbol
398
- def undefined (msg : String ) = abstractClassError(false , member.showDcl + " is not defined" + msg)
398
+ def undefined (msg : String ) =
399
+ abstractClassError(false , member.showDcl + " is not defined" + msg)
399
400
val underlying = memberSym.underlyingSymbol
400
401
401
402
// Give a specific error message for abstract vars based on why it fails:
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ class tests extends CompilerTest {
149
149
150
150
@ Test def dotc_printing = compileDir(dotcDir + " tools/dotc/printing" )
151
151
152
- @ Test def dotc_reporting = compileDir(dotcDir + " tools/dotc/reporting" , twice )
152
+ @ Test def dotc_reporting = compileDir(dotcDir + " tools/dotc/reporting" )
153
153
154
154
@ Test def dotc_typer = compileDir(dotcDir + " tools/dotc/typer" , failedOther)
155
155
// error: error while loading Checking$$anon$2$,
You can’t perform that action at this time.
0 commit comments