We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
scala.language.implicitConversions
1 parent 3ab5bcc commit 844ad0eCopy full SHA for 844ad0e
docs/docs/reference/changed/implicit-conversions.md
@@ -21,6 +21,10 @@ This conversion can be either:
21
1. An `implicit def` of type `T => S` or `(=> T) => S`
22
1. An implicit value of type `ImplicitConverter[T, S]`
23
24
+Defining an implicit conversion will emit a warning unless the import
25
+`scala.language.implicitConversions` is in scope, or the flag
26
+`-language:implicitConversions` is given to the compiler.
27
+
28
## Examples
29
30
The first example is taken from `scala.Predef`. Thanks to this
@@ -38,6 +42,7 @@ The second example shows how to use `ImplicitConverter` to define an
38
42
types:
39
43
40
44
```scala
45
+import scala.language.implicitConversions
41
46
implicit def ordT[T, S](
47
implicit conv: ImplicitConverter[T, S],
48
ordS: Ordering[S]
0 commit comments