Skip to content

Commit

Permalink
Rename test to correct issue number
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Aug 1, 2024
1 parent 053c8f9 commit 0205871
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Inferencing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ object Inferencing {
// This foils the `isExactlyNothing` test in `hasLowerBound` and
// therefore makes the new type variable have a lower bound. That way,
// we favor in `apply` below instantiating from below to `Nothing` instead
// of from above to `Any`. That avoids a spurious flip of the roginal `Nothing`
// of from above to `Any`. That avoids a spurious flip of the original `Nothing`
// instance to `Any`. See i21275 for a test case.
newTypeVar(bounds, nestingLevel = tvar.nestingLevel)
else if t.symbol.is(ModuleClass) then
Expand Down
File renamed without changes.

0 comments on commit 0205871

Please sign in to comment.