Skip to content

Commit

Permalink
flip ct order as intellij is confused :(
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgk committed Mar 10, 2024
1 parent 922ecc8 commit 7711ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) =
Expand Down

0 comments on commit 7711ffa

Please sign in to comment.