File: sammy_restrictions.check

package info (click to toggle)
scala 2.11.12-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 62,776 kB
  • sloc: java: 13,415; xml: 3,252; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (49 lines) | stat: -rw-r--r-- 1,697 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
sammy_restrictions.scala:31: error: type mismatch;
 found   : () => Int
 required: NoAbstract
  (() => 0)      : NoAbstract
      ^
sammy_restrictions.scala:32: error: type mismatch;
 found   : Int => Int
 required: TwoAbstract
  ((x: Int) => 0): TwoAbstract
            ^
sammy_restrictions.scala:34: error: class type required but DerivedOneAbstract with OneAbstract found
  ((x: Int) => 0): NonClassType                 // "class type required". I think we should avoid SAM translation here.
            ^
sammy_restrictions.scala:35: error: type mismatch;
 found   : Int => Int
 required: NoEmptyConstructor
  ((x: Int) => 0): NoEmptyConstructor
            ^
sammy_restrictions.scala:37: error: type mismatch;
 found   : Int => Int
 required: OneEmptySecondaryConstructor
  ((x: Int) => 0): OneEmptySecondaryConstructor // derived class must have an empty *primary* to call.
            ^
sammy_restrictions.scala:38: error: type mismatch;
 found   : Int => Int
 required: MultipleConstructorLists
  ((x: Int) => 0): MultipleConstructorLists
            ^
sammy_restrictions.scala:39: error: type mismatch;
 found   : Int => Int
 required: MultipleMethodLists
  ((x: Int) => 0): MultipleMethodLists
            ^
sammy_restrictions.scala:40: error: type mismatch;
 found   : Int => Int
 required: ImplicitConstructorParam
  ((x: Int) => 0): ImplicitConstructorParam
            ^
sammy_restrictions.scala:41: error: type mismatch;
 found   : Int => Int
 required: ImplicitMethodParam
  ((x: Int) => 0): ImplicitMethodParam
            ^
sammy_restrictions.scala:44: error: type mismatch;
 found   : Int => Int
 required: PolyMethod
  ((x: Int) => 0): PolyMethod
            ^
10 errors found