Kotlin: Remove some now-unnecessary casts

This commit is contained in:
Ian Lynagh
2021-09-24 10:55:35 +01:00
parent bcbcd612a3
commit 7eebf81ffc

View File

@@ -851,12 +851,10 @@ class KotlinFileExtractor(val logger: FileLogger, val tw: FileTrapWriter, val fi
id: Label<out DbBreakcontinuestmt>
) {
val locId = tw.getLocation(e)
@Suppress("UNCHECKED_CAST")
tw.writeHasLocation(id as Label<out DbLocatable>, locId)
tw.writeHasLocation(id, locId)
val label = e.label
if (label != null) {
@Suppress("UNCHECKED_CAST")
tw.writeNamestrings(label, "", id as Label<out DbNamedexprorstmt>)
tw.writeNamestrings(label, "", id)
}
val loopId = loopIdMap[e.loop]