Skip to content

Commit

Permalink
Set default source version to 3.5 (#20441)
Browse files Browse the repository at this point in the history
Superseeds #20435 
Closes #20415 

[test_scala2_library_tasty]
[test_windows_full]
[test_java8]
  • Loading branch information
hamzaremmal authored May 27, 2024
2 parents 952b928 + 5a6ca9d commit a594958
Show file tree
Hide file tree
Showing 61 changed files with 6,702 additions and 153 deletions.
2 changes: 1 addition & 1 deletion community-build/community-projects/akka
2 changes: 1 addition & 1 deletion community-build/community-projects/cask
2 changes: 1 addition & 1 deletion community-build/community-projects/endpoints4s
2 changes: 1 addition & 1 deletion community-build/community-projects/os-lib
Submodule os-lib updated 1 files
+2 −2 os/src/Path.scala
2 changes: 1 addition & 1 deletion community-build/community-projects/scalatest
2 changes: 1 addition & 1 deletion community-build/community-projects/scas
2 changes: 1 addition & 1 deletion community-build/community-projects/utest
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/config/SourceVersion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ enum SourceVersion:
def isAtMost(v: SourceVersion) = stable.ordinal <= v.ordinal

object SourceVersion extends Property.Key[SourceVersion]:
def defaultSourceVersion = `3.4`
def defaultSourceVersion = `3.5`

/** language versions that may appear in a language import, are deprecated, but not removed from the standard library. */
val illegalSourceVersionNames = List("3.1-migration").map(_.toTermName)
Expand Down
2 changes: 1 addition & 1 deletion library/src/scala/quoted/ToExpr.scala
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ object ToExpr {
/** Default implementation of `ToExpr[Array[T]]` */
given ArrayToExpr[T: Type: ToExpr: ClassTag]: ToExpr[Array[T]] with {
def apply(arr: Array[T])(using Quotes): Expr[Array[T]] =
'{ Array[T](${Expr(arr.toSeq)}*)(${Expr(summon[ClassTag[T]])}) }
'{ Array[T](${Expr(arr.toSeq)}*)(using ${Expr(summon[ClassTag[T]])}) }
}

/** Default implementation of `ToExpr[Array[Boolean]]` */
Expand Down
Loading

0 comments on commit a594958

Please sign in to comment.