Skip to content

Commit a9a42c4

Browse files
author
Dean Wampler
committed
Added comment that you must use :paste mode for this code
1 parent 47d6efb commit a9a42c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/scala/progscala2/implicits/implicit-conversions-resolution.sc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// src/main/scala/progscala2/implicits/implicit-conversions-resolution.sc
22
import scala.language.implicitConversions
33

4+
// WARNING: You must :paste mode in the REPL for the following.
5+
// Using :load won't compile the two definitions together!
46
case class Foo(s: String)
57
object Foo {
68
implicit def fromString(s: String): Foo = Foo(s)

0 commit comments

Comments
 (0)