Skip to content

Commit e7536fc

Browse files
authored
Merge pull request #469 from scala/backport-lts-3.3-22828
Backport "standardize on `-Vprint:...` (still support `-Xprint:...` as alias)" to 3.3 LTS
2 parents 4df1a41 + a83f567 commit e7536fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+59
-59
lines changed

compiler/src/dotty/tools/dotc/Run.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
338338
profiler.onPhase(phase):
339339
try units = phase.runOn(units)
340340
catch case _: InterruptedException => cancelInterrupted()
341-
if (ctx.settings.Xprint.value.containsPhase(phase))
341+
if (ctx.settings.Vprint.value.containsPhase(phase))
342342
for (unit <- units)
343343
lastPrintedTree =
344344
printTree(lastPrintedTree)(using ctx.fresh.setPhase(phase.next).setCompilationUnit(unit))

compiler/src/dotty/tools/dotc/config/CliCommand.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ trait CliCommand:
3333
|<phases> means one or a comma-separated list of:
3434
| - (partial) phase names with an optional "+" suffix to include the next phase
3535
| - the string "all"
36-
| example: -Xprint:all prints all phases.
37-
| example: -Xprint:typer,mixin prints the typer and mixin phases.
36+
| example: -Vprint:all prints all phases.
37+
| example: -Vprint:typer,mixin prints the typer and mixin phases.
3838
| example: -Ylog:erasure+ logs the erasure phase and the phase after the erasure phase.
3939
| This is useful because during the tree transform of phase X, we often
4040
| already are in phase X + 1.

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private sealed trait PluginSettings:
154154
private sealed trait VerboseSettings:
155155
self: SettingGroup =>
156156
val Vhelp: Setting[Boolean] = BooleanSetting("-V", "Print a synopsis of verbose options.")
157-
val Xprint: Setting[List[String]] = PhasesSetting("-Vprint", "Print out program after", aliases = List("-Xprint"))
157+
val Vprint: Setting[List[String]] = PhasesSetting("-Vprint", "Print out program after", aliases = List("-Xprint"))
158158
val XshowPhases: Setting[Boolean] = BooleanSetting("-Vphases", "List compiler phases.", aliases = List("-Xshow-phases"))
159159

160160
val Vprofile: Setting[Boolean] = BooleanSetting("-Vprofile", "Show metrics about sources and internal representations to estimate compile-time complexity.")

compiler/src/dotty/tools/dotc/core/Phases.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ object Phases {
300300
* instance, it is possible to print trees after a given phase using:
301301
*
302302
* ```bash
303-
* $ ./bin/scalac -Xprint:<phaseNameHere> sourceFile.scala
303+
* $ ./bin/scalac -Vprint:<phaseNameHere> sourceFile.scala
304304
* ```
305305
*/
306306
def phaseName: String

compiler/src/dotty/tools/dotc/transform/Recheck.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ abstract class Recheck extends Phase, SymTransformer:
149149
* can be retrieved with `knownType`
150150
*/
151151
private val keepAllTypes = inContext(ictx) {
152-
ictx.settings.Xprint.value.containsPhase(thisPhase)
152+
ictx.settings.Vprint.value.containsPhase(thisPhase)
153153
}
154154

155155
/** Should type of `tree` be kept in an attachment so that it can be retrieved with

compiler/test/dotty/tools/dotc/printing/PrintingTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PrintingTest {
2727
def options(phase: String, flags: List[String]) =
2828
val outDir = ParallelTesting.defaultOutputDir + "printing" + File.pathSeparator
2929
File(outDir).mkdirs()
30-
List(s"-Xprint:$phase", "-color:never", "-nowarn", "-d", outDir, "-classpath", TestConfiguration.basicClasspath) ::: flags
30+
List(s"-Vprint:$phase", "-color:never", "-nowarn", "-d", outDir, "-classpath", TestConfiguration.basicClasspath) ::: flags
3131

3232
private def compileFile(path: JPath, phase: String): Boolean = {
3333
val baseFilePath = path.toString.stripSuffix(".scala")

compiler/test/dotty/tools/dotc/semanticdb/SemanticdbTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class SemanticdbTests:
138138
"-feature",
139139
"-deprecation",
140140
// "-Ydebug-flags",
141-
// "-Xprint:extractSemanticDB",
141+
// "-Vprint:extractSemanticDB",
142142
"-sourceroot", expectSrc.toString,
143143
"-classpath", target.toString,
144144
"-Xignore-scala2-macros",

compiler/test/dotty/tools/repl/ReplCompilerTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ object ReplCompilerTests:
422422

423423
end ReplCompilerTests
424424

425-
class ReplXPrintTyperTests extends ReplTest(ReplTest.defaultOptions :+ "-Xprint:typer"):
425+
class ReplXPrintTyperTests extends ReplTest(ReplTest.defaultOptions :+ "-Vprint:typer"):
426426
@Test def i9111 = initially {
427427
run("""|enum E {
428428
| case A

docs/_docs/contributing/debugging/ide-debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ And concatenate the output into the classpath argument, which should already con
140140

141141
In the `args` you can add any additional compiler option you want.
142142

143-
For instance you can add `-Xprint:all` to print all the generated trees after each mega phase.
143+
For instance you can add `-Vprint:all` to print all the generated trees after each mega phase.
144144

145145
Run `scalac -help` to get an overview of the available compiler options.
146146

docs/_docs/contributing/debugging/inspection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Sometimes you may want to stop the compiler after a certain phase, for example t
6161
knock-on errors from occurring from a bug in an earlier phase. Use the flag
6262
`-Ystop-after:<phase-name>` to prevent any phases executing afterwards.
6363

64-
> e.g. `-Xprint:<phase>` where `phase` is a miniphase, will print after
64+
> e.g. `-Vprint:<phase>` where `phase` is a miniphase, will print after
6565
> the whole phase group is complete, which may be several miniphases after `phase`.
66-
> Instead you can use `-Ystop-after:<phase> -Xprint:<phase>` to stop
66+
> Instead you can use `-Ystop-after:<phase> -Vprint:<phase>` to stop
6767
> immediately after the miniphase and see the trees that you intended.
6868
6969
## Printing TASTy of a Class

docs/_docs/contributing/debugging/other-debugging.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,19 @@ assertPositioned(tree.reporting(s"Tree is: $result"))
137137
To print out the trees you are compiling after the FrontEnd (scanner, parser, namer, typer) phases:
138138

139139
```shell
140-
scalac -Xprint:typer ../issues/Playground.scala
140+
scalac -Vprint:typer ../issues/Playground.scala
141141
```
142142

143143
To print out the trees after Frontend and CollectSuperCalls phases:
144144

145145
```shell
146-
scalac -Xprint:typer,collectSuperCalls ../issues/Playground.scala
146+
scalac -Vprint:typer,collectSuperCalls ../issues/Playground.scala
147147
```
148148

149149
To print out the trees after all phases:
150150

151151
```shell
152-
scalac -Xprint:all ../issues/Playground.scala
152+
scalac -Vprint:all ../issues/Playground.scala
153153
```
154154

155155
To find out the list of all the phases and their names, check out [this](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/Compiler.scala#L34) line in `Compiler.scala`. Each `Phase` object has `phaseName` defined on it, this is the phase name.
@@ -219,7 +219,7 @@ And is to be used as:
219219
scalac -Yprint-pos ../issues/Playground.scala
220220
```
221221

222-
If used, all the trees output with `show` or via `-Xprint:typer` will also have positions attached to them, e.g.:
222+
If used, all the trees output with `show` or via `-Vprint:typer` will also have positions attached to them, e.g.:
223223

224224
```scala
225225
package <empty>@<Playground.scala:1> {
@@ -247,7 +247,7 @@ package <empty>@<Playground.scala:1> {
247247
Every [Positioned](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/ast/Positioned.scala) (a parent class of `Tree`) object has a `uniqueId` field. It is an integer that is unique for that tree and doesn't change from compile run to compile run. You can output these IDs from any printer (such as the ones used by `.show` and `-Xprint`) via `-Yshow-tree-ids` flag, e.g.:
248248

249249
```shell
250-
scalac -Xprint:typer -Yshow-tree-ids ../issues/Playground.scala
250+
scalac -Vprint:typer -Yshow-tree-ids ../issues/Playground.scala
251251
```
252252

253253
Gives:

docs/_docs/contributing/issues/cause.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ As described in the [compiler lifecycle](../architecture/lifecycle.md#phases-2),
1818
each phase transforms the trees and types that represent your code in a certain
1919
way.
2020

21-
To print the code as it is transformed through the compiler, use the compiler flag `-Xprint:all`.
21+
To print the code as it is transformed through the compiler, use the compiler flag `-Vprint:all`.
2222
After each phase group is completed, you will see the resulting trees representing the code.
2323

24-
> It is recommended to test `-Xprint:all` on a single, small file, otherwise a lot of unnecessary
24+
> It is recommended to test `-Vprint:all` on a single, small file, otherwise a lot of unnecessary
2525
> output will be generated.
2626
2727
### Trace a Tree Creation Site
@@ -31,7 +31,7 @@ your search to the code of that phase. For example if you found a problematic tr
3131
`posttyper`, the problem most likely appears in the code of [PostTyper]. We can trace the exact point
3232
the tree was generated by looking for its unique ID, and then generating a stack trace at its creation:
3333

34-
1. Run the compiler with `-Xprint:posttyper` and `-Yshow-tree-ids` flags.
34+
1. Run the compiler with `-Vprint:posttyper` and `-Yshow-tree-ids` flags.
3535
This will only print the trees of the `posttyper` phase. This time you should see the tree
3636
in question be printed alongside its ID. You'll see something like `println#223("Hello World"#37)`.
3737
2. Copy the ID of the desired tree.
@@ -43,7 +43,7 @@ Do not use a conditional breakpoint, the time overhead is very significant for a
4343

4444
### Enhanced Tree Printing
4545

46-
As seen above `-Xprint:<phase>` can be enhanced with further configuration flags, found in
46+
As seen above `-Vprint:<phase>` can be enhanced with further configuration flags, found in
4747
[ScalaSettings]. For example, you can additionally print the type of a tree with `-Xprint-types`.
4848

4949
## Increasing Logging Output

docs/_docs/contributing/issues/reproduce.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ $ scalac <OPTIONS> <FILE>
3939

4040
Here are some useful debugging `<OPTIONS>`:
4141

42-
* `-Xprint:PHASE1,PHASE2,...` or `-Xprint:all`: prints the `AST` after each
42+
* `-Vprint:PHASE1,PHASE2,...` or `-Vprint:all`: prints the `AST` after each
4343
specified phase. Phase names can be found by examining the
44-
`dotty.tools.dotc.transform.*` classes for their `phaseName` field e.g., `-Xprint:erasure`.
44+
`dotty.tools.dotc.transform.*` classes for their `phaseName` field e.g., `-Vprint:erasure`.
4545
You can discover all phases in the `dotty.tools.dotc.Compiler` class
4646
* `-Ylog:PHASE1,PHASE2,...` or `-Ylog:all`: enables `ctx.log("")` logging for
4747
the specified phase.
@@ -142,7 +142,7 @@ $ (rm -rv out || true) && mkdir out # clean up compiler output, create `out` dir
142142
143143
scalac # Invoke the compiler task defined by the Dotty sbt project
144144
-d $here/out # All the artefacts go to the `out` folder created earlier
145-
# -Xprint:typer # Useful debug flags, commented out and ready for quick usage. Should you need one, you can quickly access it by uncommenting it.
145+
# -Vprint:typer # Useful debug flags, commented out and ready for quick usage. Should you need one, you can quickly access it by uncommenting it.
146146
# -Ydebug-error
147147
# -Yprint-debug
148148
# -Yprint-debug-owners

docs/_docs/reference/experimental/cc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ TBD
656656

657657
The following options are relevant for capture checking.
658658

659-
- **-Xprint:cc** Prints the program with capturing types as inferred by capture checking.
659+
- **-Vprint:cc** Prints the program with capturing types as inferred by capture checking.
660660
- **-Ycc-debug** Gives more detailed, implementation-oriented information about capture checking, as described in the next section.
661661

662662
The implementation supporting capture checking with these options is currently in branch `cc-experiment` on dotty.epfl.ch.

docs/_spec/TODOreference/experimental/cc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ TBD
655655
The following options are relevant for capture checking.
656656

657657
- **-Ycc** Enables capture checking.
658-
- **-Xprint:cc** Prints the program with capturing types as inferred by capture checking.
658+
- **-Vprint:cc** Prints the program with capturing types as inferred by capture checking.
659659
- **-Ycc-debug** Gives more detailed, implementation-oriented information about capture checking, as described in the next section.
660660

661661
The implementation supporting capture checking with these options is currently in branch `cc-experiment` on dotty.epfl.ch.

project/scripts/options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
-Xprint:frontend -Ylog:frontend
1+
-Vprint:frontend -Ylog:frontend
22
-Ycheck:all

sbt-test/scala2-compat/i13332/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ lazy val app = project.in(file("app"))
1010
.dependsOn(lib)
1111
.settings(
1212
scalaVersion := scala3Version,
13-
scalacOptions += "-Xprint:inlining"
14-
)
13+
scalacOptions += "-Vprint:inlining"
14+
)

tests/disabled/partest/run/delambdafy_t6028.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Ydelambdafy:method -Xprint:lambdalift -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Ydelambdafy:method -Vprint:lambdalift -d " + testOutput.path
77

88
override def code = """class T(classParam: Int) {
99
| val field: Int = 0

tests/disabled/partest/run/delambdafy_t6555.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:specialize -Ydelambdafy:method -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:specialize -Ydelambdafy:method -d " + testOutput.path
77

88
override def code = "class Foo { val f = (param: Int) => param } "
99

tests/disabled/partest/run/delambdafy_uncurry_byname_inline.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:inline -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:uncurry -Ydelambdafy:inline -d " + testOutput.path
77

88
override def code = """class Foo {
99
| def bar(x: => Int) = x

tests/disabled/partest/run/delambdafy_uncurry_byname_method.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:method -Ystop-after:uncurry -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:uncurry -Ydelambdafy:method -Ystop-after:uncurry -d " + testOutput.path
77

88
override def code = """class Foo {
99
| def bar(x: => Int) = x

tests/disabled/partest/run/delambdafy_uncurry_inline.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:inline -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:uncurry -Ydelambdafy:inline -d " + testOutput.path
77

88
override def code = """class Foo {
99
| def bar = {

tests/disabled/partest/run/delambdafy_uncurry_method.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:method -Ystop-after:uncurry -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:uncurry -Ydelambdafy:method -Ystop-after:uncurry -d " + testOutput.path
77

88
override def code = """class Foo {
99
| def bar = {

tests/disabled/partest/run/dynamic-applyDynamic.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
object X {
@@ -23,4 +23,4 @@ object Test extends DirectTest {
2323
import language.dynamics
2424
class D extends Dynamic {
2525
def applyDynamic(name: String)(value: Any) = ???
26-
}
26+
}

tests/disabled/partest/run/dynamic-applyDynamicNamed.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
object X {

tests/disabled/partest/run/dynamic-selectDynamic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
object X {

tests/disabled/partest/run/dynamic-updateDynamic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
object X {

tests/disabled/partest/run/existential-rangepos.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import scala.tools.partest._
22

33
object Test extends DirectTest {
4-
override def extraSettings: String = "-usejavacp -Yrangepos -Xprint:patmat -Xprint-pos -d " + testOutput.path
4+
override def extraSettings: String = "-usejavacp -Yrangepos -Vprint:patmat -Xprint-pos -d " + testOutput.path
55

66
override def code = """
77
abstract class A[T] {

tests/disabled/partest/run/t4287inferredMethodTypes.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Yinfer-argument-types -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Yinfer-argument-types -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
class A(a: Int = A.a)
@@ -22,4 +22,4 @@ class B extends A {
2222
compile()
2323
}
2424
}
25-
}
25+
}

tests/disabled/partest/run/t5603.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import scala.tools.nsc.reporters.ConsoleReporter
77

88
object Test extends DirectTest {
99

10-
override def extraSettings: String = "-usejavacp -Xprint:parser -Ystop-after:parser -d " + testOutput.path
10+
override def extraSettings: String = "-usejavacp -Vprint:parser -Ystop-after:parser -d " + testOutput.path
1111

1212
override def code = """
1313
trait Greeting {

tests/disabled/partest/run/t5699.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object Test extends DirectTest {
77
|public @interface MyAnnotation { String value(); }
88
""".stripMargin
99

10-
override def extraSettings: String = "-usejavacp -Ystop-after:typer -Xprint:parser"
10+
override def extraSettings: String = "-usejavacp -Ystop-after:typer -Vprint:parser"
1111

1212
override def show(): Unit = {
1313
// redirect err to out, for logging

tests/disabled/partest/run/t6028.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Ydelambdafy:inline -Xprint:lambdalift -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Ydelambdafy:inline -Vprint:lambdalift -d " + testOutput.path
77

88
override def code = """class T(classParam: Int) {
99
| val field: Int = 0

tests/disabled/partest/run/t6288.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:patmat -Xprint-pos -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:patmat -Xprint-pos -d " + testOutput.path
77

88
override def code =
99
"""

tests/disabled/partest/run/t6555.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:specialize -Ydelambdafy:inline -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:specialize -Ydelambdafy:inline -d " + testOutput.path
77

88
override def code = "class Foo { val f = (param: Int) => param } "
99

tests/disabled/partest/run/t7271.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import scala.reflect.internal.Positions
77

88
object Test extends DirectTest {
99

10-
override def extraSettings: String = "-usejavacp -Xprint:parser -Ystop-after:parser -d " + testOutput.path
10+
override def extraSettings: String = "-usejavacp -Vprint:parser -Ystop-after:parser -d " + testOutput.path
1111

1212
override def code = """
1313
class C {

0 commit comments

Comments
 (0)