Skip to content

Commit 7c27b2f

Browse files
authored
fix indent so outer numbered list is continuous
Seems like the last commit #4174 fixed the bullet points but messed up the numbered list. Since I have no preview on how it will look like at http://dotty.epfl.ch/docs/ it's again a guess.
1 parent 771d4c4 commit 7c27b2f

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

docs/docs/reference/erased-terms.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,17 @@ Rules
152152
* In a method definition
153153
* In a `val` definition (but not `lazy val` or `var`)
154154

155-
```scala
156-
erased val x = ...
157-
erased def f = ...
155+
```scala
156+
erased val x = ...
157+
erased def f = ...
158158

159-
def g(erased x: Int) = ...
159+
def g(erased x: Int) = ...
160160

161-
(erased x: Int) => ...
162-
def h(x: erased Int => Int) = ...
161+
(erased x: Int) => ...
162+
def h(x: erased Int => Int) = ...
163163

164-
class K(erased x: Int) { ... }
165-
```
164+
class K(erased x: Int) { ... }
165+
```
166166

167167

168168
2. A reference to an `erased` definition can only be used
@@ -177,12 +177,11 @@ class K(erased x: Int) { ... }
177177
* `(implicit erased T1, T2) => R <:< (erased T1, T2) => R`
178178
* ...
179179

180-
Note that there is no subtype relation between `erased T => R` and `T => R` (or `implicit erased T => R` and `implicit T => R`)
180+
Note that there is no subtype relation between `erased T => R` and `T => R` (or `implicit erased T => R` and `implicit T => R`)
181181

182182

183183
4. Eta expansion
184-
185-
if `def f(erased x: T): U` then `f: (erased T) => U`.
184+
if `def f(erased x: T): U` then `f: (erased T) => U`.
186185

187186

188187
5. Erasure Semantics
@@ -193,8 +192,7 @@ if `def f(erased x: T): U` then `f: (erased T) => U`.
193192

194193

195194
6. Overloading
196-
197-
Method with `erased` parameters will follow the normal overloading constraints after erasure.
195+
Method with `erased` parameters will follow the normal overloading constraints after erasure.
198196

199197

200198
7. Overriding

0 commit comments

Comments
 (0)