Skip to content

Commit e9bddd5

Browse files
committed
Fix typo and update to -Wsafe-init option
1 parent 9959f28 commit e9bddd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/src/scala/runtime/stdLibPatches/language.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ object language:
9696
* @see [[https://dotty.epfl.ch/docs/reference/experimental/into-modifier]]
9797
*/
9898
@compileTimeOnly("`namedTuples` can only be used at compile time in import statements")
99-
object namedTupleas
99+
object namedTuples
100100

101101
/** Experimental support for new features for better modularity, including
102102
* - better tracking of dependencies through classes

project/Build.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ object Build {
881881

882882
lazy val nonBootstrappedDottyCompilerSettings = commonDottyCompilerSettings ++ Seq(
883883
// FIXME revert this to commonDottyCompilerSettings, when we bump reference version to 3.5.0
884-
scalacOptions += "-Ysafe-init",
884+
scalacOptions += "-Wsafe-init",
885885
// packageAll packages all and then returns a map with the abs location
886886
packageAll := Def.taskDyn { // Use a dynamic task to avoid loops when loading the settings
887887
Def.task {

0 commit comments

Comments
 (0)