File: Test.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 (24 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package test

// takes > 50s and > 800M heap to compile under 2.11.0
import foobar._
class `SI-8531` {
    //https://issues.scala-lang.org/browse/SI-8531

  import MyEnum._
  def foo(e1: MyEnum, e2: MyEnum) = (e1, e2) match {
    case (A1, x) => "a1"
    case (x, A1) => "a1"
    case (A2, x) => "a2"
    case (x, A2) => "a2"
    case (A3, x) => "a3"
    case (x, A3) => "a3"
    case (A4, x) => "a4"
    case (x, A4) => "a4"
    case (A5, x) => "a5"
    case (x, A5) => "a5"
    case (A6, x) => "a6"
    case (x, A6) => "a6"
    case (a, b)  => "ab"
  }
}