File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ object Context:
191
191
Then you can import it using a wildcard:
192
192
193
193
``` scala
194
- import Context .{ given _ } // TODO next week it will become import Context. given
194
+ import Context .given
195
195
```
196
196
Or by making the type that you are bringing in scope explicit:
197
197
```
@@ -263,7 +263,7 @@ You can then use the syntax described above for the import:
263
263
264
264
``` scala
265
265
import java .util .Optional
266
- import OptionalConversion .{ given _ } // TODO next week it will become import Context. given
266
+ import OptionalConversion .given
267
267
268
268
@ main def main =
269
269
val opt : Option [Int ] = Optional .empty[Int ]()
@@ -341,7 +341,7 @@ object Show:
341
341
To use it we need to import the interface and define an instance:
342
342
``` scala
343
343
// Main.scala
344
- import Show .{_ , given _ } // TODO next week it will become import Context.given
344
+ import Show .{_ , given }
345
345
346
346
case class Mountain (name : String , height : Int )
347
347
You can’t perform that action at this time.
0 commit comments