blob: d41f5c3641e7f94acf75f69ad3f97e1b89a36bdc [file] [log] [blame] [edit]
import Foundation
public class MyStruct {
public let representableProperty: Int
public let customProperty: MyOtherStruct
public init(outerLabel representableProperty: Int, customProperty: MyOtherStruct) {
self.representableProperty = representableProperty
self.customProperty = customProperty
}
public init(label1 name1: Int, label2: Int, _ name3: Int) {
self.representableProperty = name1
self.customProperty = MyOtherStruct()
}
public init?(outerLabel x: Int) {
if x == 0 {
return nil
} else {
self.representableProperty = x
self.customProperty = MyOtherStruct()
}
}
}
public struct MyOtherStruct {}