diff --git a/sources/zweic/Parser.scala b/sources/zweic/Parser.scala index 3e9eb46..af38b8e 100755 --- a/sources/zweic/Parser.scala +++ b/sources/zweic/Parser.scala @@ -336,7 +336,7 @@ case _ => error("illegal start of expression"); } - if ( check(DOT) ) { + while ( check(DOT) ) { accept(IDENT); if ( token == LPAREN ) { params(); diff --git a/tests/2/mechant3.zwei b/tests/2/mechant3.zwei index 9171152..2ed067b 100755 --- a/tests/2/mechant3.zwei +++ b/tests/2/mechant3.zwei @@ -2,6 +2,8 @@ factoriel monfact; String toString() { - monfact.soString(4, 5, 5); + monfact.soString(4, 5, {int = 5;}); } -} \ No newline at end of file +} + +test.toString(1,2,3)