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

Segmentation fault with Xcode beta 5 when using ternary operator with code coverage

    XMLWordPrintable

    Details

      Description

      The following 2 lines cause the compiler crash when used with code coverage. (It works fine with code coverage turned off) on Xcode beta 5

      let falseBool: Bool = false
      lazy var offset: CGFloat = falseBool ? 30 : 55 

      I've attached sample project to show case the problem

       

        Attachments

          Activity

            People

            Assignee:
            vedantk Vedant Kumar
            Reporter:
            leohemanth Hemanth Prasad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: