Skip to content

Commit a425e4f

Browse files
authored
Merge pull request #217 from Philippus/update/scala-2.13.0-RC1
Update scala 2.13.0-M5 to 2.13.0-RC1
2 parents b052e47 + c9a06d6 commit a425e4f

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ scalaModuleSettings
44

55
scalaVersionsByJvm in ThisBuild := {
66
val v212 = "2.12.8"
7-
val v213 = "2.13.0-M5"
7+
val v213 = "2.13.0-RC1"
88

99
val allFalse = List(v212 -> false, v213 -> false)
1010
Map(

src/main/scala/scala/async/internal/TransformUtils.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,9 @@ private[async] trait TransformUtils {
554554
// we have to create the trio of members manually.
555555
val ACCESSOR = (1L << 27).asInstanceOf[FlagSet]
556556
val STABLE = (1L << 22).asInstanceOf[FlagSet]
557-
val field = ValDef(Modifiers(Flag.MUTABLE | Flag.PRIVATE | Flag.LOCAL), TermName(name + " "), TypeTree(tpt), init)
557+
val field = ValDef(Modifiers(Flag.MUTABLE | Flag.PRIVATE | Flag.LOCAL), TermName(name.toString + " "), TypeTree(tpt), init)
558558
val getter = DefDef(Modifiers(ACCESSOR | STABLE), name, Nil, Nil, TypeTree(tpt), Select(This(typeNames.EMPTY), field.name))
559-
val setter = DefDef(Modifiers(ACCESSOR), TermName(name + "_="), Nil, List(List(ValDef(NoMods, TermName("x"), TypeTree(tpt), EmptyTree))), TypeTree(definitions.UnitTpe), Assign(Select(This(typeNames.EMPTY), field.name), Ident(TermName("x"))))
559+
val setter = DefDef(Modifiers(ACCESSOR), TermName(name.toString + "_="), Nil, List(List(ValDef(NoMods, TermName("x"), TypeTree(tpt), EmptyTree))), TypeTree(definitions.UnitTpe), Assign(Select(This(typeNames.EMPTY), field.name), Ident(TermName("x"))))
560560
field :: getter :: setter :: Nil
561561
} else {
562562
val result = ValDef(NoMods, name, TypeTree(tpt), init)

src/test/scala/scala/async/run/futures/FutureSpec.scala

+1-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ class FutureSpec {
8686
}
8787
Await.ready(waiting, 2000 millis)
8888

89-
// commented out like https://github.com/scala/scala/blob/23e8f087e143b118cfac6ed7e83b0a865c798ccc/test/files/jvm/future-spec/FutureTests.scala#L79
90-
// (https://github.com/scala/scala/commit/5cd3442419ba8fcbf6798740d00d4cdbd0f47c0c)
91-
// doesn't pass in 2.13.0-M5 in particular
92-
// ms.size mustBe (4)
93-
//FIXME should check
89+
ms.size mustBe (4)
9490
}
9591

9692
import ExecutionContext.Implicits._

0 commit comments

Comments
 (0)