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) {
        
    }
}

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

1 Like

Thanks for posting! That’s a compiler bug then so if you don’t mind, please file it at https://bugs.swift.org

I have created it!
https://bugs.swift.org/browse/SR-10786

1 Like
Terms of Service

Privacy Policy

Cookie Policy