8000 put import in the correct place in file · Nydhal/scala.github.com@d27a475 · GitHub
[go: up one dir, main page]

Skip to content

Commit d27a475

Browse files
committed
put import in the correct place in file
1 parent 3259cc0 commit d27a475

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tutorials/tour/implicit-conversions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ The implicitly imported object `scala.Predef` declares several predefined types
4444
For example, when calling a Java method that expects a `java.lang.Integer`, you are free to pass it a `scala.Int` instead. That's because Predef includes the following implicit conversions:
4545

4646
```tut
47+
import scala.language.implicitConversions
48+
4749
implicit def int2Integer(x: Int) =
4850
java.lang.Integer.valueOf(x)
4951
```

0 commit comments

Comments
 (0)
0