// `demonitor` takes the pid and the `Down` subject `monitor` returned // (issue #414); `monitor`'s type is unchanged. import std/process.{type Down, type Pid, type Subject, type proc} fn watch_then_forget :: pid: Pid -> Subject / { let down = process.monitor pid process.demonitor pid down process.demonitor_flush pid down down } //~ TYPE watch_then_forget: fn(Pid) -> Subject / fn another_subject :: pid: Pid replies: Subject -> () / { process.demonitor pid replies //~^ ERROR E0202 expected `Subject`, found `Subject` }