Skip to content

Commit a1275c4

Browse files
committed
TODO: binding example
1 parent c61f554 commit a1275c4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

04-identifiers-names-and-scopes.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,21 @@ in some inner scope _shadows_ bindings of lower precedence in the
3434
same scope as well as bindings of the same or lower precedence in outer
3535
scopes.
3636

37+
<!-- TODO: either the example, the spec, or the compiler is wrong
38+
3739
Note that shadowing is only a partial order. In a situation like
3840
3941
```
40-
val x = 1;
42+
val x = 1
4143
{
42-
import p.x;
44+
import p.x
4345
x
4446
}
4547
```
4648
4749
neither binding of `x` shadows the other. Consequently, the
48-
reference to `x` in the third line above would be ambiguous.
50+
reference to `x` in the last line of the block above would be ambiguous.
51+
-->
4952

5053
A reference to an unqualified (type- or term-) identifier $x$ is bound
5154
by the unique binding, which

0 commit comments

Comments
 (0)