Scala Programming Language
  1. Scala Programming Language
  2. SI-6788

ill-typed copy call for case class --> null type --> NPE in cps annotation checker

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0
    • Fix Version/s: Scala 2.10.1
    • Component/s: None
    • Labels:
      None

      Description

      case class B[T](b: T, a: List[Int]) // need two args, B must be polymorphic
      
      class A {
        var s: B[Int] = _ // has to be a var
      
        s.copy(b = foo)
      }
      

        Activity

        Show
        Paul Phillips added a comment - https://github.com/scala/scala/pull/1801

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Adriaan Moors
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development