Skip to content

festive holiday typo fixes #14166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
* A package object should always be skipped if we look for a term.
* That way we make sure we consider all overloaded alternatives of
* a definition, even if they are in different source files.
* If we are looking for a type, a package object should ne skipped
* If we are looking for a type, a package object should be skipped
* only if it does not contain opaque definitions. Package objects
* with opaque definitions are significant, since opaque aliases
* are only seen if the prefix is the this-type of the package object.
Expand Down
2 changes: 1 addition & 1 deletion compiler/test/dotty/tools/repl/ReplCompilerTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ReplCompilerTests extends ReplTest {
assertEquals("x: Int = 10", storedOutput().trim)
}

@Test def defaultParamter = fromInitialState { implicit state =>
@Test def defaultParameter = fromInitialState { implicit state =>
run("def foo(a: Int = 1): 1 = 1")
assertEquals("def foo(a: Int): 1", storedOutput().trim)
}
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/internals/dotty-internals-1-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ on the structure of a tree is error-prone.
## Errors
`dotc/typer/ErrorReporting.scala`

Sometimes there's an error during compilation, but we want to continue compilling (as opposed to failing outright), to
Sometimes there's an error during compilation, but we want to continue compiling (as opposed to failing outright), to
uncover additional errors.

In cases where a tree is expected but there's an error, we can use the `errorTree` methods in `ErrorReporting` to create
Expand Down