mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This condition is already checked from defineDefaultConstructor's only caller, addImplicitConstructors, and the two conditions had drifted. This was causing issues in the multi-file case, where the optionals hadn't been given an explicit initial value yet. rdar://problem/18716572 Swift SVN r23017
11 lines
161 B
Swift
11 lines
161 B
Swift
struct DefaultInitializable {
|
|
var a: Int?
|
|
var b: Int = 3
|
|
var c: Int?, d: Int?
|
|
}
|
|
|
|
class DefaultInitializableClass {
|
|
var a: Int?
|
|
@NSManaged var b: Int
|
|
}
|