-1

Why does the compiler complain at this? I do believe java was fine with this.

class myClass(rules:Map<String,Boolean>) {
...
}
4

1 回答 1

2

在 Scala 中,类型参数必须写在方括号中:

class myClass(rules: Map[String,Boolean])
于 2013-07-08T12:31:48.097 回答