Uploaded image for project: 'Swift'
  1. Swift
  2. SR-7445

Call Expressions Need Better Assignment Diagnostics

    XMLWordPrintable

    Details

      Description

      Call expressions are not handled in the walker at ConstraintSystem::diagnoseAssignmentFailure in CSDiag.cpp. A new diagnostic needs to be added to DiagnosticsSema.def and it needs to be invoked by that function.  It would also be great to clean up the existing diagnostics by giving them better messages.

      print(1) = () // error: cannot assign to value: function call returns immutable value 
      

       

        Attachments

          Activity

            People

            Assignee:
            anthonylatsis Anthony Latsis
            Reporter:
            rwidmann Robert Widmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: