File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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
1681682 . 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
1831834 . 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
1881885 . Erasure Semantics
@@ -194,7 +194,7 @@ if `def f(erased x: T): U` then `f: (erased T) => U`.
194194
1951956 . 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
2002007 . Overriding
You can’t perform that action at this time.
0 commit comments