summaryrefslogtreecommitdiff
path: root/test/neg/bug47.scala
blob: fac1037802518afbb9b76c19aa9d0cd5cd79f1fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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"
}