Skip to content

Commit c5e40dc

Browse files
authored
Merge pull request #4178 from robstoll/patch-3
fix indent so numbered list is continuous
2 parents 771d4c4 + d6d7ab2 commit c5e40dc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/docs/reference/erased-terms.md

Lines changed: 11 additions & 11 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,12 @@ 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
184184

185-
if `def f(erased x: T): U` then `f: (erased T) => U`.
185+
if `def f(erased x: T): U` then `f: (erased T) => U`.
186186

187187

188188
5. Erasure Semantics
@@ -194,7 +194,7 @@ if `def f(erased x: T): U` then `f: (erased T) => U`.
194194

195195
6. Overloading
196196

197-
Method with `erased` parameters will follow the normal overloading constraints after erasure.
197+
Method with `erased` parameters will follow the normal overloading constraints after erasure.
198198

199199

200200
7. Overriding

0 commit comments

Comments
 (0)