Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.12.1
    • Fix Version/s: None
    • Component/s: Compiler (Misc)
    • Labels:
      None

      Description

      It would be nice:

      class C { implicit this =>
        def f(implicit c: C) = ???
        def g = f // ok
      }
      class C(x: X, y: Y) { self(implicit x) =>
        def f(implicit z: X) = ???
        def g = f // ok
      }
      // C.x needn't be a field as in:
      class C(implicit x: X, y: Y) { ... }  // don't want implicit param section
      class C(x: X, y: Y) {
        implicit private val x1: X = x   // incurs a field
      }
      

      Implicit this suggested at https://issues.scala-lang.org/browse/SI-2823

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              apm A. P. Marki
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: