diff options
Diffstat (limited to 'test/files/run/Course-2002-13.scala')
-rw-r--r-- | test/files/run/Course-2002-13.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/Course-2002-13.scala b/test/files/run/Course-2002-13.scala index 022bb77ac5..cd9360fb97 100644 --- a/test/files/run/Course-2002-13.scala +++ b/test/files/run/Course-2002-13.scala @@ -223,7 +223,7 @@ class Parser(s: String) { def syntaxError(msg: String): Unit = error(msg + ", but " + token + " found"); - def rep[a](def p: a): List[a] = { + def rep[a](p: => a): List[a] = { val t = p; if (token == ",") { token = it.next; t :: rep(p) } else List(t) } |