Files
swift-mirror/test/SILOptimizer/Inputs/definite_init_cross_module/OtherModule.swift
Jordan Rose 85e84a85ef DI: Handle cross-module initializers for empty structs in pre-Swift-5
These also have to delegate to another initializer even though there
are no stored properties to initialize.
2017-11-10 14:10:14 -08:00

44 lines
605 B
Swift

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