You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2016/03/25 02:26:25 UTC

[jira] [Created] (SPARK-14146) imported implicit can't be found in Spark REPL in some case

Wenchen Fan created SPARK-14146:
-----------------------------------

             Summary: imported implicit can't be found in Spark REPL in some case
                 Key: SPARK-14146
                 URL: https://issues.apache.org/jira/browse/SPARK-14146
             Project: Spark
          Issue Type: Bug
          Components: SQL
            Reporter: Wenchen Fan


{code}
class I(i: Int) {
  def double: Int = i * 2
}

class Context {
  implicit def toI(i: Int): I = new I(i)
}

val c = new Context
import c._

// OK
1.double

// Fail
class A; 1.double
{code}

The above code snippets can work in Scala REPL however.



--
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