Skip to content

Commit 1834d12

Browse files
bishaboshaWojciechMazur
authored andcommitted
[spec] some fixes to tuples
[Cherry-picked a2bbef0]
1 parent e91fddf commit 1834d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/_spec/03-types.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,13 @@ SimpleType1 ::= ...
239239
| ‘(’ TypesOrWildcards ‘)’
240240
```
241241

242-
A _tuple type_ ´(T_1, ..., T_n)´ where ´n \geq 2´ is sugar for the type `´T_1´ *: ... *: ´T_n´ *: scala.EmptyTuple`, which is itself a series of nested infix types which are sugar for `*:[´T_1´, *:[´T_2´, ... *[´T_n´, scala.EmptyTuple]]]`.
242+
A _tuple type_ ´(T_1, ..., T_n)´ where ´n \geq 2´ is sugar for the type `´T_1´ *: ... *: ´T_n´ *: scala.EmptyTuple`, which is itself a series of nested infix types which are sugar for `*:[´T_1´, *:[´T_2´, ... *:[´T_n´, scala.EmptyTuple]]]`.
243243
The ´T_i´ can be wildcard type arguments.
244244

245245
Notes:
246246

247247
- `(´T_1´)` is the type ´T_1´, and not `´T_1´ *: scala.EmptyTuple` (´T_1´ cannot be a wildcard type argument in that case).
248-
- `()` is not a valid type (not even `scala.EmptyTuple`).
248+
- `()` is not a valid type (i.e. it is not desugared to `scala.EmptyTuple`).
249249

250250
### Concrete Refined Types
251251

0 commit comments

Comments
 (0)