Add internal compiler argument to change metadata version
Will be used in tests to check how we behave on binaries produced by a "future" compiler
This commit is contained in:
@@ -65,5 +65,11 @@ abstract class BinaryVersion(private vararg val numbers: Int) {
|
||||
|
||||
companion object {
|
||||
private const val UNKNOWN = -1
|
||||
|
||||
@JvmStatic
|
||||
fun parseVersionArray(string: String): IntArray? =
|
||||
string.split(".")
|
||||
.map { part -> part.toIntOrNull() ?: return null }
|
||||
.toTypedArray().toIntArray()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user