Add 'disableDesignatedInitializerChecks' .def file flag

When enabled for an Objective-C library, compiler would permit to call
a constructor of a class from this library as super-constructor even if
it is not marked as designated.

Fix #1539
This commit is contained in:
Svyatoslav Scherbina
2018-05-21 11:06:55 +03:00
committed by SvyatoslavScherbina
parent ec80b949e7
commit b218a3a7a2
5 changed files with 16 additions and 3 deletions
@@ -99,6 +99,10 @@ class DefFile(val file:File?, val config:DefFileConfig, val manifestAddendProper
val exportForwardDeclarations by lazy {
properties.getSpaceSeparated("exportForwardDeclarations")
}
val disableDesignatedInitializerChecks by lazy {
properties.getProperty("disableDesignatedInitializerChecks")?.toBoolean() ?: false
}
}
}