Skip to content
Snippets Groups Projects
Verified Commit b59d063d authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Set type of new{}

parent d29191bc
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ struct DelayedEvent{T<:EventComponent} <: EventComponent ...@@ -6,7 +6,7 @@ struct DelayedEvent{T<:EventComponent} <: EventComponent
event :: T event :: T
delay :: VariableType delay :: VariableType
function DelayedEvent(event::EventComponent, delay=nothing) function DelayedEvent(event::EventComponent, delay=nothing)
new(event, get_free_variable(delay)) new{typeof(event)}(event, get_free_variable(delay))
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment