You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make -scala-release an experimental setting
* Add better checks of of TASTy version
* Validate names of releases inside since annotations
* Extend Vulpix to check actual counts and possitions of errors from other compilers
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,6 @@ trait CommonScalaSettings:
104
104
valsilentWarnings:Setting[Boolean] =BooleanSetting("-nowarn", "Silence all warnings.", aliases =List("--no-warnings"))
105
105
106
106
valrelease:Setting[String] =ChoiceSetting("-release", "release", "Compile code with classes specific to the given version of the Java platform available on the classpath and emit bytecode for this version.", ScalaSettings.supportedReleaseVersions, "", aliases =List("--release"))
107
-
valscalaRelease:Setting[String] =ChoiceSetting("-scala-release", "release", "Emit TASTy files that can be consumed by specified version of the compiler.", ScalaSettings.supportedScalaReleaseVersions, "", aliases =List("--scala-release"))
108
107
valdeprecation:Setting[Boolean] =BooleanSetting("-deprecation", "Emit warning and location for usages of deprecated APIs.", aliases =List("--deprecation"))
109
108
valfeature:Setting[Boolean] =BooleanSetting("-feature", "Emit warning and location for usages of features that should be imported explicitly.", aliases =List("--feature"))
110
109
valexplain:Setting[Boolean] =BooleanSetting("-explain", "Explain errors in more detail.", aliases =List("--explain"))
valYexplicitNulls:Setting[Boolean] =BooleanSetting("-Yexplicit-nulls", "Make reference types non-nullable. Nullable types can be expressed with unions: e.g. String|Null.")
312
311
valYcheckInit:Setting[Boolean] =BooleanSetting("-Ysafe-init", "Ensure safe initialization of objects")
313
312
valYrequireTargetName:Setting[Boolean] =BooleanSetting("-Yrequire-targetName", "Warn if an operator is defined without a @targetName annotation")
313
+
valYscalaRelease:Setting[String] =ChoiceSetting("-Yscala-release", "release", "Emit TASTy files that can be consumed by specified version of the compiler.", ScalaSettings.supportedScalaReleaseVersions, "", aliases =List("--Yscala-release"))
314
314
315
315
/** Area-specific debug output */
316
316
valYexplainLowlevel:Setting[Boolean] =BooleanSetting("-Yexplain-lowlevel", "When explaining type errors, show types at a lower level.")
Diagnostic.Error(s"Compilation of $filePath with Scala $compilerVersion failed at line: $line, column: $column. Full error output:\n\n$errorsText\n", sourcePos)
// 2 errors reported because at the stage of compilation when this is checked (already after some code transformations) the illegal type is referred to more than once
0 commit comments