File: t8325.check

package info (click to toggle)
scala 2.11.12-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 62,924 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,135; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (15 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
t8325.scala:5: error: *-parameter must come last
  def f(is: Int*, s: String) = ???
        ^
t8325.scala:7: error: *-parameter must come last
  def h(is: Int * String *, s: String) = ???
        ^
t8325.scala:10: error: type mismatch;
 found   : Int(5)
 required: Int*
  def j(is: Int* = 5) = ???
                   ^
t8325.scala:10: error: a parameter section with a `*'-parameter is not allowed to have default arguments
  def j(is: Int* = 5) = ???
      ^
four errors found