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:46:34 UTC

[jira] [Comment Edited] (SPARK-5150) Strange implicit resolution behavior in Spark REPL

    [ https://issues.apache.org/jira/browse/SPARK-5150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14269530#comment-14269530 ] 

Tobias Schlatter edited comment on SPARK-5150 at 1/8/15 4:46 PM:
-----------------------------------------------------------------

The heuristics used to fix SPARK-2632 fail in this case.


was (Author: tobias.schlatter):
The heuristics used in the fix fail in this case.

> 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