Skip to content

Commit fa72c6e

Browse files
committed
Adopt 3.0.0-M1 syntax for imports
1 parent d0a1299 commit fa72c6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_posts/2020-10-21-explicit-term-inference-in-scala-3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ object Context:
191191
Then you can import it using a wildcard:
192192

193193
```scala
194-
import Context.{given _} // TODO next week it will become import Context.given
194+
import Context.given
195195
```
196196
Or by making the type that you are bringing in scope explicit:
197197
```
@@ -263,7 +263,7 @@ You can then use the syntax described above for the import:
263263

264264
```scala
265265
import java.util.Optional
266-
import OptionalConversion.{given _}// TODO next week it will become import Context.given
266+
import OptionalConversion.given
267267

268268
@main def main =
269269
val opt: Option[Int] = Optional.empty[Int]()
@@ -341,7 +341,7 @@ object Show:
341341
To use it we need to import the interface and define an instance:
342342
```scala
343343
// Main.scala
344-
import Show.{_, given _}// TODO next week it will become import Context.given
344+
import Show.{_, given}
345345

346346
case class Mountain(name: String, height: Int)
347347

0 commit comments

Comments
 (0)