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