blob: 3e449b357336c6a65cb90d8e71bc193cedbf8118 [file] [log] [blame]
public struct Point {
public var x, y: Double
public init(x: Double, y: Double) {
self.x = x
self.y = y
}
}
public struct ImmutablePoint {
public let x, y: Double
public init(x: Double, y: Double) {
self.x = x
self.y = y
}
}
public struct GenericPoint<T> {
public var x, y: T
public init(x: T, y: T) {
self.x = x
self.y = y
}
}
public struct PrivatePoint {
private var x, y: Double
public init(x: Double, y: Double) {
self.x = x
self.y = y
}
}
public struct Empty {
public init() {}
}
public struct GenericEmpty<T> {
public init() {}
}