-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix printed file path in PrintingTest.scala #8292
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, and thank you for opening this PR! 🎉
All contributors have signed the CLA, thank you! ❤️
Have an awesome day! ☀️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, LGTM
val jOutFilePath = Paths.get(baseFilePath + ".check.out") | ||
if (Files.exists(jOutFilePath)) | ||
try { Files.delete(jOutFilePath) } catch { case _: Exception => () } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it be better to remove the file in FileDiff.checkAndDump
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I can do it in FileDiff.checkAndDump.
I'll move the code.
LGTM 👍 Maybe rebase to remove histories like |
It is `given _`, or `given Type`, never `given` alone.
It's now `:` instead of the trailing `with`.
Add a doc page to explain how the syntax of previous Dotty versions changed in 0.22.
Part of #8114.
* Use inline parameters * Stop using underlyingArgument * Use throwError
Change syntax of context functions to `(using x: T) => E`. The previous syntax `(x: T) ?=> E` is still supported, but the docs have been changed to `using`.
Promote is more semantically correct than Leak: leaking means something bad, but promotion is neutral or positive. A warning may be reported if the promotion is unsafe.
ErasedFunctionX does not have constructors, thus no need to follow. dotc -d out -Yerased-terms -Ycheck-init tests/run-custom-args/erased/erased-15.scala
dotc -d out -Ycheck-init tests/run/vc-equals.scala
dotc -d out -Ycheck-init tests/pos/aliasNew.scala
The method name is not an invariant: dotc -d out -Ycheck-init tests/pos/i4350.scala
dotc -d out -Ycheck-init tests/pos/SI-4012-b.scala
dotc -d out -Ycheck-init tests/run/polymorphic-functions.scala
dotc -d out -Ycheck-init tests/pos/annot.scala
It should return a tuple of effects and potentials due to length limit. Previously, the effects are checked but the errors are thrown away.
Limit the buffer size on clear so that pathological strings or comments don't permanently allocate.
This fix solves one test case among several tests still failing on Windows (Win10/Java 8).
On Windows both files differ only in the first line for test
i620.scala
:result of tests/printing/i620.scala after typer:
result of tests\printing\i620.scala after typer:
Replacing selectively the file separator on Windows does solve the issue: