Add index() to LocalSignature for more clear access
This commit is contained in:
committed by
teamcityserver
parent
5a7298808e
commit
2574c00dd9
@@ -194,6 +194,8 @@ sealed class IdSignature {
|
||||
override val isLocal: Boolean
|
||||
get() = true
|
||||
|
||||
fun index(): Int = hashSig?.toInt() ?: error("Expected index in ${render()}")
|
||||
|
||||
override fun topLevelSignature(): IdSignature {
|
||||
error("Illegal access: Local Sig does not have toplevel (${render()}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user