Skip to content

Commit

Permalink
Set default source version to 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Jun 17, 2024
1 parent f913d89 commit 0626b97
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/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 0626b97

Please sign in to comment.