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

#sourceLocation doesn't allow underscores in line numbers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:
    • Environment:

      Near-master, 15 April 2019

      Description

        1> #sourceLocation(file: "a.swift", line: 1_000)
      error: /var/folders/mw/1rhv6fn96gb8swwkt8zycwph0000gn/T/repl1-101710..swift:2:40: error: expected starting line number for #sourceLocation directive
      #sourceLocation(file: "a.swift", line: 1_000)
                                             ^
        1> #sourceLocation(file: "a.swift", line: 1000)
        2> 1_000
      $R0: Int = 1000
        3>  
      

      Underscore separators in #sourceLocation directives probably ought to be supported.

        Attachments

          Activity

            People

            Assignee:
            matthewspear Matthew Spear
            Reporter:
            brentdax Brent Royal-Gordon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: