The code that cause compiler crash

public func test() {
    var b = A.B.init(start: .zero, end: .zero)
    var a = A.init()
    a.doSomething(b: b)

public class A {
    public struct B {
        public var start: CGPoint
        public var end: CGPoint
    public func doSomething(b: B, map: inout [[Bool]]? = nil) {

this code will cause the compiler crash, you can paste to your project to test it.

1 Like

Thanks for posting! That’s a compiler bug then so if you don’t mind, please file it at

I have created it!

1 Like
Terms of Service

Privacy Policy

Cookie Policy