Skip to content

Commit c91fad9

Browse files
committed
Move strawman files to tests/run
1 parent fffd21b commit c91fad9

9 files changed

+7
-1
lines changed

tests/pos/suspend-strawman-2/Async.scala renamed to tests/run/suspend-strawman-2/Async.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ object Async:
6868
/** Await source result in currently executing Async context */
6969
inline def await[T](src: Source[T])(using async: Async): T = async.await(src)
7070

71+
72+
7173
/** A function `T => Boolean` whose lineage is recorded by its implementing
7274
* classes. The Listener function accepts values of type `T` and returns
7375
* `true` iff the value was consumed by an async block.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import concurrent.*
2+
3+
@main def Test = ()
4+

tests/pos/suspend-strawman-2/choices.scala renamed to tests/run/suspend-strawman-2/choices.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def choices[T](body: Choice ?=> T): Seq[T] =
1414

1515
def choose[A](choices: A*)(using c: Choice): A = c.choose(choices*)
1616

17-
@main def test: Seq[Int] =
17+
def TestChoices: Seq[Int] =
1818
choices:
1919
def x = choose(1, -2, -3)
2020
def y = choose("ab", "cde")

0 commit comments

Comments
 (0)