Sort sealed class inheritors to ensure reproducible builds with IC
without this sorting the inheritors field in the metadata may depend on whether some inheritors are compiled in the IC round or not.
This commit is contained in:
Vendored
+1
-1
@@ -14,7 +14,7 @@ fun box(): String {
|
||||
val klass = Base::class
|
||||
if (!klass.isSealed) return "Error: Base is not sealed"
|
||||
if (klass.isAbstract) return "Error: Base is not abstract"
|
||||
return klass.sealedSubclasses
|
||||
return klass.sealedSubclasses.asReversed()
|
||||
.joinToString("") { it.simpleName ?: "_No name provided_" }
|
||||
.takeIf { it.isNotBlank() }
|
||||
?: "_No sealed subclasses found_"
|
||||
|
||||
Reference in New Issue
Block a user