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
152
152
* In a method definition
153
153
* In a ` val ` definition (but not ` lazy val ` or ` var ` )
154
154
155
- ``` scala
156
- erased val x = ...
157
- erased def f = ...
155
+ ``` scala
156
+ erased val x = ...
157
+ erased def f = ...
158
158
159
- def g (erased x : Int ) = ...
159
+ def g (erased x : Int ) = ...
160
160
161
- (erased x : Int ) => ...
162
- def h (x : erased Int => Int ) = ...
161
+ (erased x : Int ) => ...
162
+ def h (x : erased Int => Int ) = ...
163
163
164
- class K (erased x : Int ) { ... }
165
- ```
164
+ class K (erased x : Int ) { ... }
165
+ ```
166
166
167
167
168
168
2 . A reference to an `erased` definition can only be used
@@ -177,12 +177,12 @@ class K(erased x: Int) { ... }
177
177
* `(implicit erased T1, T2) => R <:< (erased T1, T2) => R`
178
178
* ...
179
179
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`)
181
181
182
182
183
183
4 . Eta expansion
184
184
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`.
186
186
187
187
188
188
5 . Erasure Semantics
@@ -194,7 +194,7 @@ if `def f(erased x: T): U` then `f: (erased T) => U`.
194
194
195
195
6 . Overloading
196
196
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.
198
198
199
199
200
200
7 . Overriding
You can’t perform that action at this time.
0 commit comments