@@ -228,7 +228,7 @@ Base.:-(k::ShiftIndex, i::Int) = k + (-i)
228228
229229Return the time-domain type (`Continuous` or `InferredDiscrete`) that `op` operates on.
230230"""
231- function input_timedomain (s:: Shift , arg = nothing )
231+ function input_timedomain (s:: Shift , arg)
232232 if has_time_domain (arg)
233233 return get_time_domain (arg)
234234 end
@@ -240,26 +240,26 @@ end
240240
241241Return the time-domain type (`Continuous` or `InferredDiscrete`) that `op` results in.
242242"""
243- function output_timedomain (s:: Shift , arg = nothing )
244- if has_time_domain (arg)
245- return get_time_domain (arg)
243+ function output_timedomain (s:: Shift , arg)
244+ if has_time_domain (t, arg)
245+ return get_time_domain (t, arg)
246246 end
247247 InferredDiscrete
248248end
249249
250- input_timedomain (:: Sample , arg = nothing ) = Continuous
251- output_timedomain (s:: Sample , arg = nothing ) = s. clock
250+ input_timedomain (:: Sample , _ ) = Continuous
251+ output_timedomain (s:: Sample , _ ) = s. clock
252252
253- function input_timedomain (h:: Hold , arg = nothing )
253+ function input_timedomain (h:: Hold , arg)
254254 if has_time_domain (arg)
255255 return get_time_domain (arg)
256256 end
257257 InferredDiscrete # the Hold accepts any discrete
258258end
259- output_timedomain (:: Hold , arg = nothing ) = Continuous
259+ output_timedomain (:: Hold , _ ) = Continuous
260260
261- sampletime (op:: Sample , arg = nothing ) = sampletime (op. clock)
262- sampletime (op:: ShiftIndex , arg = nothing ) = sampletime (op. clock)
261+ sampletime (_, op:: Sample , _ ) = sampletime (op. clock)
262+ sampletime (_, op:: ShiftIndex , _ ) = sampletime (op. clock)
263263
264264changes_domain (op) = isoperator (op, Union{Sample, Hold})
265265
0 commit comments