|
| 1 | +-- [E163] Declaration Error: tests/neg-custom-args/captures/lazylists2.scala:50:10 ------------------------------------- |
| 2 | +50 | def tail: {xs, f} LazyList[B] = xs.tail.map(f) // error |
| 3 | + | ^ |
| 4 | + | error overriding method tail in trait LazyList of type => {Mapped.this} LazyList[B]; |
| 5 | + | method tail of type => {xs, f} LazyList[B] has incompatible type |
| 6 | + |
| 7 | +longer explanation available when compiling with `-explain` |
| 8 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazylists2.scala:18:4 ------------------------------------ |
| 9 | +18 | final class Mapped extends LazyList[B]: // error |
| 10 | + | ^ |
| 11 | + | Found: {f, xs} LazyList[B] |
| 12 | + | Required: {f} LazyList[B] |
| 13 | +19 | this: ({xs, f} Mapped) => |
| 14 | +20 | def isEmpty = false |
| 15 | +21 | def head: B = f(xs.head) |
| 16 | +22 | def tail: {this} LazyList[B] = xs.tail.map(f) |
| 17 | +23 | new Mapped |
| 18 | + |
| 19 | +longer explanation available when compiling with `-explain` |
| 20 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazylists2.scala:27:4 ------------------------------------ |
| 21 | +27 | final class Mapped extends LazyList[B]: // error |
| 22 | + | ^ |
| 23 | + | Found: {f, xs} LazyList[B] |
| 24 | + | Required: {xs} LazyList[B] |
| 25 | +28 | this: ({xs, f} Mapped) => |
| 26 | +29 | def isEmpty = false |
| 27 | +30 | def head: B = f(xs.head) |
| 28 | +31 | def tail: {this} LazyList[B] = xs.tail.map(f) |
| 29 | +32 | new Mapped |
| 30 | + |
| 31 | +longer explanation available when compiling with `-explain` |
| 32 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazylists2.scala:41:48 ----------------------------------- |
| 33 | +41 | def tail: {this} LazyList[B] = xs.tail.map(f) // error |
| 34 | + | ^^^^^^^^^^^^^^ |
| 35 | + | Found: {f} LazyList[B] |
| 36 | + | Required: {xs} LazyList[B] |
| 37 | + |
| 38 | +longer explanation available when compiling with `-explain` |
| 39 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazylists2.scala:59:48 ----------------------------------- |
| 40 | +59 | def tail: {this} LazyList[B] = xs.tail.map(f) // error |
| 41 | + | ^^^^^^^^^^^^^^ |
| 42 | + | Found: {f} LazyList[B] |
| 43 | + | Required: {Mapped.this} LazyList[B] |
| 44 | + |
| 45 | +longer explanation available when compiling with `-explain` |
0 commit comments