def step(detail: String);
}
-def withReporter[T, R <: BaseReporter]
- (rep: R, body: R => T): T = {
+def withReporter[T, P <: BaseReporter]
+ (rep: P, body: P => T): T = {
val ret = try { body(rep) }
catch { case e: Exception => rep.failed(e); throw e; }
rep.done();