|
1 | | -sammy_restrictions.scala:38: error: type mismatch; |
| 1 | +sammy_restrictions.scala:40: error: type mismatch; |
2 | 2 | found : () => Int |
3 | 3 | required: NoAbstract |
4 | 4 | def f0 = (() => 0) : NoAbstract |
5 | 5 | ^ |
6 | | -sammy_restrictions.scala:39: error: type mismatch; |
| 6 | +sammy_restrictions.scala:41: error: type mismatch; |
7 | 7 | found : Int => Int |
8 | 8 | required: TwoAbstract |
9 | 9 | def f1 = ((x: Int) => 0): TwoAbstract |
10 | 10 | ^ |
11 | | -sammy_restrictions.scala:40: error: type mismatch; |
| 11 | +sammy_restrictions.scala:42: error: type mismatch; |
12 | 12 | found : Int => Int |
13 | 13 | required: NoEmptyConstructor |
14 | 14 | def f2 = ((x: Int) => 0): NoEmptyConstructor |
15 | 15 | ^ |
16 | | -sammy_restrictions.scala:41: error: type mismatch; |
| 16 | +sammy_restrictions.scala:43: error: type mismatch; |
17 | 17 | found : Int => Int |
18 | 18 | required: MultipleConstructorLists |
19 | 19 | def f3 = ((x: Int) => 0): MultipleConstructorLists |
20 | 20 | ^ |
21 | | -sammy_restrictions.scala:42: error: type mismatch; |
| 21 | +sammy_restrictions.scala:44: error: type mismatch; |
22 | 22 | found : Int => Int |
23 | 23 | required: OneEmptySecondaryConstructor |
24 | 24 | def f4 = ((x: Int) => 0): OneEmptySecondaryConstructor // derived class must have an empty *primary* to call. |
25 | 25 | ^ |
26 | | -sammy_restrictions.scala:43: error: type mismatch; |
| 26 | +sammy_restrictions.scala:45: error: type mismatch; |
27 | 27 | found : Int => Int |
28 | 28 | required: MultipleMethodLists |
29 | 29 | def f5 = ((x: Int) => 0): MultipleMethodLists |
30 | 30 | ^ |
31 | | -sammy_restrictions.scala:44: error: type mismatch; |
| 31 | +sammy_restrictions.scala:46: error: type mismatch; |
32 | 32 | found : Int => Int |
33 | 33 | required: ImplicitConstructorParam |
34 | 34 | def f6 = ((x: Int) => 0): ImplicitConstructorParam |
35 | 35 | ^ |
36 | | -sammy_restrictions.scala:45: error: type mismatch; |
| 36 | +sammy_restrictions.scala:47: error: type mismatch; |
37 | 37 | found : Int => Int |
38 | 38 | required: ImplicitMethodParam |
39 | 39 | def f7 = ((x: Int) => 0): ImplicitMethodParam |
40 | 40 | ^ |
41 | | -sammy_restrictions.scala:46: error: type mismatch; |
| 41 | +sammy_restrictions.scala:48: error: type mismatch; |
42 | 42 | found : Int => Int |
43 | 43 | required: PolyMethod |
44 | 44 | def f8 = ((x: Int) => 0): PolyMethod |
45 | 45 | ^ |
46 | | -sammy_restrictions.scala:47: error: type mismatch; |
| 46 | +sammy_restrictions.scala:49: error: type mismatch; |
47 | 47 | found : Int => Int |
48 | 48 | required: SelfTp |
49 | 49 | def f9 = ((x: Int) => 0): SelfTp |
50 | 50 | ^ |
51 | | -sammy_restrictions.scala:48: error: type mismatch; |
| 51 | +sammy_restrictions.scala:50: error: type mismatch; |
52 | 52 | found : Int => Int |
53 | 53 | required: T1 with U1 |
54 | 54 | def g0 = ((x: Int) => 0): T1 with U1 |
55 | 55 | ^ |
56 | | -sammy_restrictions.scala:49: error: type mismatch; |
| 56 | +sammy_restrictions.scala:51: error: type mismatch; |
57 | 57 | found : Int => Int |
58 | 58 | required: Test.NonClassTypeRefinement |
59 | 59 | (which expands to) DerivedOneAbstract with OneAbstract |
60 | 60 | def g1 = ((x: Int) => 0): NonClassTypeRefinement |
61 | 61 | ^ |
62 | | -12 errors |
| 62 | +sammy_restrictions.scala:52: error: type mismatch; |
| 63 | + found : Int => Int |
| 64 | + required: Test.NonOverridingMethodRefinement |
| 65 | + (which expands to) OneAbstract{def apples(): Int} |
| 66 | + def h1 = ((x: Int) => 0): NonOverridingMethodRefinement |
| 67 | + ^ |
| 68 | +sammy_restrictions.scala:53: error: type mismatch; |
| 69 | + found : Int => Int |
| 70 | + required: Test.OverridingMethodRefinement |
| 71 | + (which expands to) OneAbstract{def ap(a: Int): Int} |
| 72 | + def h2 = ((x: Int) => 0): OverridingMethodRefinement |
| 73 | + ^ |
| 74 | +14 errors |
0 commit comments