Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 21697cb

Browse files
committed
Update the spec.
1 parent 2094247 commit 21697cb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/03-types.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,13 @@ forms.
103103

104104
```ebnf
105105
SimpleType ::= Path ‘.’ type
106+
| Literal [‘.’ type]
106107
```
107108

108-
A singleton type is of the form $p.$`type`, where $p$ is a
109-
path pointing to a value expected to [conform](06-expressions.html#expression-typing)
110-
to `scala.AnyRef`. The type denotes the set of values
111-
consisting of `null` and the value denoted by $p$.
109+
A singleton type is of the form $p.$`type`, where $p$ is a path,
110+
or $42$, with `.type` being optional for literals.
111+
The type denotes the set of values consisting of `null` and the
112+
value denoted by $p$.
112113

113114
A _stable type_ is either a singleton type or a type which is
114115
declared to be a subtype of trait `scala.Singleton`.

0 commit comments

Comments
 (0)