Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix printed file path in PrintingTest.scala #8292
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
Replacing selectively the file separator on Windows does solve the issue:
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
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.