louise
The Louise language: compiler, runtime, std, tooling
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#125 · main · 16 min 13 s
0Étoiles
0Forks
40Issues
| 1 | // A type variable of a definition must be one of its parameters (E0211). |
| 2 | |
| 3 | type Pair<a> = |
| 4 | //~^ ERROR E0211 type variable `b` must be declared as a parameter of `Pair` |
| 5 | (a, b) |
| 6 | |
| 7 | type Box<a> |
| 8 | { Box(a) |
| 9 | , Other(b) |
| 10 | //~^ ERROR E0211 type variable `b` must be declared as a parameter of `Box` |
| 11 | } |
| 12 | |
| 13 | trait Describe<a> |
| 14 | { |
| 15 | fn describe :: x: a -> String |
| 16 | } |
| 17 | |
| 18 | impl Describe< |
| 19 | //~^ ERROR E0211 type variable `b` in the `where` clause does not appear in the impl's type |
| 20 | Box<a> |
| 21 | > where Show<b> |
| 22 | { |
| 23 | fn describe :: x: Box<a> -> String |
| 24 | { |
| 25 | "box" |
| 26 | } |
| 27 | } |