@@ -241,25 +241,25 @@ end
241241Return the time-domain type (`Continuous` or `InferredDiscrete`) that `op` results in.
242242"""
243243function output_timedomain (s:: Shift , arg = nothing )
244- if has_time_domain (arg)
245- return get_time_domain (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 , _ = nothing ) = Continuous
251+ output_timedomain (s:: Sample , _ = nothing ) = s. clock
252252
253253function input_timedomain (h:: Hold , arg = nothing )
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 , _ = nothing ) = Continuous
260260
261- sampletime (op:: Sample , arg = nothing ) = sampletime (op. clock)
262- sampletime (op:: ShiftIndex , arg = nothing ) = sampletime (op. clock)
261+ sampletime (op:: Sample , _ = nothing ) = sampletime (op. clock)
262+ sampletime (op:: ShiftIndex , _ = nothing ) = sampletime (op. clock)
263263
264264changes_domain (op) = isoperator (op, Union{Sample, Hold})
265265
0 commit comments