X10
  1. X10
  2. XTENLANG-1839

Writing a constraint on a closure type (and writing constraint on {{void}})

    Details

    • Number of attachments :
      0

      Description

      I think that all the following should compile, but I get parsing errors.
      In general, I think that adding parenthesis should always be allowed.

      class Bar {
       var c1:Any{self!=null};
       var c2:(Any){self!=null};
       var c3:() => void{self!=null}; 
       var c4:(() => void){self!=null}; 
       var c5:() => Any{self!=null}; 
       var c6:(() => Any){self!=null}; 
       var c7:() => (Any{self!=null}); 
      }
      

        Activity

        Hide
        Yoav Zibin added a comment -

        Yes, I definitely not feel comfortable changing the grammar at this stage.
        Un-assigning me from this jira...

        Show
        Yoav Zibin added a comment - Yes, I definitely not feel comfortable changing the grammar at this stage. Un-assigning me from this jira...
        Hide
        Vijay Saraswat added a comment -

        This involves parser work that we r not going to do for 2.2, so pushed out to 2.3. No backwards compatibility issues.

        Show
        Vijay Saraswat added a comment - This involves parser work that we r not going to do for 2.2, so pushed out to 2.3. No backwards compatibility issues.
        Hide
        David Grove added a comment -

        bulk defer of "feature-like" issues to next major release (2.3 to 2.4).

        Show
        David Grove added a comment - bulk defer of "feature-like" issues to next major release (2.3 to 2.4).
        Hide
        David Grove added a comment -

        bulk defer of "feature-like" items from 2.4 to 2.5.

        Show
        David Grove added a comment - bulk defer of "feature-like" items from 2.4 to 2.5.
        Hide
        David Grove added a comment -

        bulk defer features from X10 2.5 to X10 2.6.

        Show
        David Grove added a comment - bulk defer features from X10 2.5 to X10 2.6.

          People

          • Assignee:
            Vijay Saraswat
            Reporter:
            Yoav Zibin
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: