summaryrefslogtreecommitdiff
path: root/test/neg/bug47.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/neg/bug47.scala')
-rw-r--r--test/neg/bug47.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/neg/bug47.scala b/test/neg/bug47.scala
new file mode 100644
index 0000000000..fac1037802
--- /dev/null
+++ b/test/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"
+}