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

`operator $` produces two contradictory error messages

    XMLWordPrintable

    Details

      Description

      The compiler can't make up its mind as to whether $ is an identifier:

      $ echo 'operator $' | swiftc -
      <stdin>:1:10: error: '$' is not an identifier; use backticks to escape it
      operator $
               ^
               `$`
      <stdin>:1:10: error: '$' is considered an identifier and must not appear within an operator name
      operator $
               ^

      The first error should probably not be emitted in this context.

        Attachments

          Activity

            People

            Assignee:
            mininny Minhyuk Kim
            Reporter:
            mikeash Mike Ash
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: