File: t8325.scala

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 (11 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11

trait Test {
  type OK[A,B] = A Tuple2 B
  type *[A,B]  = A Tuple2 B
  def f(is: Int*, s: String) = ???
  def g(is: Int * String, s: String) = ???     // OK
  def h(is: Int * String *, s: String) = ???
  // won't recover from following
  //def i(is: Int OK) = ???  //error: identifier expected but ')' found.
  def j(is: Int* = 5) = ???
}