// One broken item must not hide the types of the others. import std/actor fn before :: x { x + 1 } //~ TYPE before: fn(Int) -> Int pub fn broken :: -> Int { undefined_thing + "text" //~ ERROR E0101 no value named `undefined_thing` } fn after :: xs { [0, ..xs] } //~ TYPE after: fn(List) -> List fn uses_broken :: { broken () + 1 } //~ TYPE uses_broken: fn() -> Int // An effect that is not in scope is reported once, where the row names it, // not again at every call that performs it (issue #144). fn start :: -> () / //~ ERROR E0505 no effect named `proc` is in scope { let counter = actor.start 0 fn n _ { actor.Continue(n) } actor.cast counter 1 actor.cast counter 2 } fn starts_twice :: -> () / //~^ ERROR E0505 no effect named `proc` is in scope { start () start () }