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

Fixits for 'Argument passed to call that takes no arguments'

    XMLWordPrintable

    Details

      Description

      Add simple fixits that remove the sourceRange of the argExpr. Right now there are only fixits for cases like foo(())

      struct Foo {
        subscript() -> Int { return 0}
      }
      _ = Foo()[8] // Argument passed to call that takes no arguments; suggest to fix to []
      
      func foo() {}
      foo(8) // same error; suggest to fix to foo()
      foo("hello", 5) // same error; suggest to fix to foo()

        Attachments

          Activity

            People

            Assignee:
            anthonylatsis Anthony Latsis
            Reporter:
            anthonylatsis Anthony Latsis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: