@@ -12,20 +12,20 @@ Due to a bug in the parser we accept `[1, ..]` as a valid list value.
12
12
This pattern doesn't make sense as one could write ` a ` instead. We don't want
13
13
two ways of doing the same thing.
14
14
15
- - [X ] Emits warning when used.
16
- - [X ] Formatter rewrites it to desired syntax.
15
+ - [x ] Emits warning when used.
16
+ - [x ] Formatter rewrites it to desired syntax.
17
17
18
18
## Shadowing imported values
19
19
20
20
Do not allow shadowing an imported value, the same way one can't define two
21
21
top level functions with the same name.
22
22
23
- - [ ] Emits warning when used.
23
+ - [x ] Emits warning when used.
24
24
25
25
## Import one module multiple times
26
26
27
- Do not one module to be imported multiple times. This is currently accepted so
28
- long as each import uses a different alias.
27
+ Do not allow one module to be imported multiple times. This is currently
28
+ accepted so long as each import uses a different alias.
29
29
30
30
- [x] Emits warning when used.
31
31
@@ -34,3 +34,11 @@ long as each import uses a different alias.
34
34
On JavaScript there is a deprecated ` fn ` property. This was a mistake, it
35
35
should have been ` function ` . It still exists today due to backwards
36
36
compatibility.
37
+
38
+ ## Do not allow guard with no condition
39
+
40
+ It doesn't make sense to have an ` if ` guard followed by no condition, but the
41
+ compiler allows this: ` case wibble { big if -> True } `
42
+
43
+ - [ ] Emits warning when used.
44
+ - [x] Formatter rewrites it to desired syntax.
0 commit comments