fixed more problems detects by Ilya.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@15788 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
odersky 2008-08-13 18:35:50 +00:00
parent eaae148579
commit 93a82685ff
1 changed files with 2 additions and 1 deletions

View File

@ -345,6 +345,7 @@ trait JavaParsers extends JavaScanners {
val pos = in.currentPos
var t = typ()
if (in.token == LPAREN) { skipAhead(); accept(RPAREN) }
else if (in.token == LBRACE) { skipAhead(); accept(RBRACE) }
}
/*
def annotationArg() = {
@ -468,7 +469,7 @@ trait JavaParsers extends JavaScanners {
if (in.token == DOTDOTDOT) {
in.nextToken
t = atPos(t.pos) {
AppliedTypeTree(TypeTree(RepeatedParamClass.typeConstructor), List(t))
AppliedTypeTree(scalaDot(nme.REPEATED_PARAM_CLASS_NAME.toTypeName), List(t))
}
}
varDecl(in.currentPos, Modifiers(Flags.JAVA | Flags.PARAM), t, ident())