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

Off by one error in URL description (swift REPL only)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: LLDB for Swift
    • Labels:
      None
    • Environment:

       $ uname -v

      Darwin Kernel Version 17.0.0: Thu Aug 24 22:01:05 PDT 2017; root:xnu-4570.1.46~3/RELEASE_X86_64

       

      Description

      URL description and debugDescription appear fine, but the "f" in "file" is missing in the object description in the REPL.

       $ swift

      Welcome to Apple Swift version 4.0 (swiftlang-900.0.63 clang-900.0.37). Type :help for assistance.

       1> import Foundation 

        2>  URL(fileURLWithPath: "a") 

      $R0: URL = "a – ile:///Users/gwk/"

        3>  URL(fileURLWithPath: "a").description

      $R1: String = "a – file:///Users/gwk/"

        4>  URL(fileURLWithPath: "a").debugDescription 

      $R2: String = "a – file:///Users/gwk/"

       

       

        Attachments

          Activity

            People

            Assignee:
            poya Martin Svensson
            Reporter:
            gwk George King
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: