Source kit service terminated Editor functionality temporarily limited

这下可好。

Source kit service terminated Editor functionality temporarily limited

 运行以下代码出现了以上的提示。。。另外,还压根就不知道这个是什么原因千万的。

stackoverflow 上面有人说这个是xcode6 beta的一个BUG。

class triangleAndSquare {

    var triangle: equilateralTriangle {

    willSet {

        square.sideLength = newValue.sideLength

    }

    }

    var square: square {

    willSet {

        triangle.sideLength = newValue.sideLength

    }

    }

    init (size: Double, name: String) {

        square = square(sideLength: size, name: name)

        triangle = equilateralTriangle(sideLength:size, name: name)

    }

}

 swift语言中文版的19页。

 

你可能感兴趣的:(function)