Skip to content

Commit 0626b97

Browse files
committed
Set default source version to 3.5
1 parent f913d89 commit 0626b97

Some content is hidden

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

61 files changed

+6702
-153
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ enum SourceVersion:
2828
def isAtMost(v: SourceVersion) = stable.ordinal <= v.ordinal
2929

3030
object SourceVersion extends Property.Key[SourceVersion]:
31-
def defaultSourceVersion = `3.4`
31+
def defaultSourceVersion = `3.5`
3232

3333
/** language versions that may appear in a language import, are deprecated, but not removed from the standard library. */
3434
val illegalSourceVersionNames = List("3.1-migration").map(_.toTermName)

library/src/scala/quoted/ToExpr.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ object ToExpr {
9797
/** Default implementation of `ToExpr[Array[T]]` */
9898
given ArrayToExpr[T: Type: ToExpr: ClassTag]: ToExpr[Array[T]] with {
9999
def apply(arr: Array[T])(using Quotes): Expr[Array[T]] =
100-
'{ Array[T](${Expr(arr.toSeq)}*)(${Expr(summon[ClassTag[T]])}) }
100+
'{ Array[T](${Expr(arr.toSeq)}*)(using ${Expr(summon[ClassTag[T]])}) }
101101
}
102102

103103
/** Default implementation of `ToExpr[Array[Boolean]]` */

0 commit comments

Comments
 (0)