srecord ExpectANumberOfLines(int n) extends Expecter { bool check(O o) { ret o instanceof S && countLines((S) o) == n; } }