X10
  1. X10
  2. XTENLANG-28

syntax problem with super. in generated code

    Details

    • Number of attachments :
      0

      Description

      (Nate, this appears to be a different incarnation of the similar bug that you already fixed)

      class P {}
      
      public class AL[T] {
      
          public def add(T) = {}
      }
      
      class PL extends AL[P] {
      
          public def add(p:P) {
              super.add(p);
          }
      }
      

      x10c: classes\Bug.java:107: '.' expected
      super).add$(p);
      ^
      classes\Bug.java:107: <identifier> expected
      super).add$(p);
      ^
      classes\Bug.java:106: not a statement
      ((AL<P>)
      ^

        Activity

        Hide
        Nate Nystrom added a comment -

        Removed cast of super inserted by X10Boxer.java.

        Show
        Nate Nystrom added a comment - Removed cast of super inserted by X10Boxer.java.
        Hide
        Bruce Lucas added a comment -

        Fix verified.

        Show
        Bruce Lucas added a comment - Fix verified.

          People

          • Assignee:
            Vijay Saraswat
            Reporter:
            Bruce Lucas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: