diff options
Diffstat (limited to 'test/files/neg/bug47.scala')
-rw-r--r-- | test/files/neg/bug47.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/bug47.scala b/test/files/neg/bug47.scala new file mode 100644 index 0000000000..fac1037802 --- /dev/null +++ b/test/files/neg/bug47.scala @@ -0,0 +1,13 @@ +// this is not possible + +object Test { + + class Elem; + class MySuperXML_Tag( children: Elem* ) extends Elem; + + val factory = new HashMap( String, Elem* => Elem ) + factory.put("MySuperXML_Tag", MySuperXML_Tag ) +// ^ +// error "methods with repeated args have to be +// fully applied" +} |