Skip to content

Commit a15b0c0

Browse files
committed
Allow future Moshi style syntax to ease transition
The Expronicon singleton variant is `Continuous`, for Moshi it is `Continuous()`. This makes `Continuous()` return `Continuous` so we can update downstream to the new syntax already.
1 parent c01ffa5 commit a15b0c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/clock.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ using Expronicon.ADT: variant_type, @adt, @match
1313
SolverStepClock
1414
end
1515

16+
(clock::TimeDomain)() = clock
17+
1618
Base.Broadcast.broadcastable(d::TimeDomain) = Ref(d)
1719

1820
const DiscriminatorType = typeof(variant_type(Continuous))

0 commit comments

Comments
 (0)