Files
swift-mirror/test/Sema/Inputs/implicit_initializer_multi_other.swift
Jordan Rose 2d480aa89f Remove duplicate checks for if a default no-argument initializer can be defined.
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
2014-10-30 18:53:13 +00:00

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
}