diff --git a/Modules/Microbenchmarks/src/main/scala/benchmarks/philosophers/PaperPhilosophers.scala b/Modules/Microbenchmarks/src/main/scala/benchmarks/philosophers/PaperPhilosophers.scala index d7bb78b75..9d310ef3f 100644 --- a/Modules/Microbenchmarks/src/main/scala/benchmarks/philosophers/PaperPhilosophers.scala +++ b/Modules/Microbenchmarks/src/main/scala/benchmarks/philosophers/PaperPhilosophers.scala @@ -207,7 +207,7 @@ trait SignalPyramidTopper extends IndividualCounts { val successCount: Signal[Int] = individualCounts.reduce { (a, b) => { - Signal(using (CreationTicket.fromName(s"sumUpTo($b)"))) { a.value + b.value } + Signal { a.value + b.value }(using (CreationTicket.fromName(s"sumUpTo($b)"))) } } override def total: Int = successCount.readValueOnce diff --git a/Modules/Reactives/shared/src/main/scala/reactives/operator/Signal.scala b/Modules/Reactives/shared/src/main/scala/reactives/operator/Signal.scala index 40136ef18..e70570218 100644 --- a/Modules/Reactives/shared/src/main/scala/reactives/operator/Signal.scala +++ b/Modules/Reactives/shared/src/main/scala/reactives/operator/Signal.scala @@ -145,7 +145,7 @@ trait Signal[+T] extends Disconnectable with MacroAccess[T] with ReSource { */ object Signal { - inline def apply[T](using CreationTicket[State])(inline expr: T): Signal[T] = static(expr) + inline def apply[T](inline expr: T)(using CreationTicket[State]): Signal[T] = static(expr) inline def static[T](using CreationTicket[State])(inline expr: T): Signal[T] = { val (inputs, fun, isStatic) =