Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 1b147cd

Browse files
committed
refactor: simplify the example for 061
1 parent 61a6c04 commit 1b147cd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/061_TopLevelCantBeImplicitID.scala

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
@main def TopLevelCantBeImplicitID = ()
44

55
import scala.language.implicitConversions
6-
case class C(str: String)
7-
implicit def toC(x: String): C = C(x)
8-
implicit val defaultC: C = C("default")
6+
implicit def intToBoolean(x: Int): Boolean = x != 0
7+
implicit val foo: String = "foo"
98
// END

0 commit comments

Comments
 (0)