tobogganSe connecter

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.

27 lignes · 543 octetsBrut · Historique
1// A type variable of a definition must be one of its parameters (E0211).
2
3type Pair<a> =
4 //~^ ERROR E0211 type variable `b` must be declared as a parameter of `Pair`
5 (a, b)
6
7type Box<a>
8{ Box(a)
9, Other(b)
10 //~^ ERROR E0211 type variable `b` must be declared as a parameter of `Box`
11}
12
13trait Describe<a>
14{
15 fn describe :: x: a -> String
16}
17
18impl 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}