You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Tobias Schlatter (JIRA)" <ji...@apache.org> on 2015/01/08 17:44:35 UTC
[jira] [Created] (SPARK-5150) Strange implicit resolution behavior
in Spark REPL
Tobias Schlatter created SPARK-5150:
---------------------------------------
Summary: Strange implicit resolution behavior in Spark REPL
Key: SPARK-5150
URL: https://issues.apache.org/jira/browse/SPARK-5150
Project: Spark
Issue Type: Bug
Reporter: Tobias Schlatter
Consider the following Spark REPL session:
{code}
scala> def showInt(implicit x: Int) = println(x)
showInt: (implicit x: Int)Unit
scala> object IntHolder { implicit val myInt = 5 }
defined module IntHolder
scala> import IntHolder.myInt
import IntHolder.myInt
scala> showInt
5
scala> class A; showInt
<console>:11: error: could not find implicit value for parameter x: Int
showInt
^
{code}
This was most likely caused by the fix to [SPARK-2632|https://issues.apache.org/jira/browse/SPARK-2632]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org