FIR2IR: don't generate unnecessary 'return throw'

#KT-60245 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-08-18 17:16:46 +02:00
committed by Space Team
parent 90904e4f8a
commit 7d5e2f85cc
8 changed files with 15 additions and 16 deletions
@@ -124,9 +124,8 @@ FILE fqName:<root> fileName:/ArrayMap.kt
public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator
$this: VALUE_PARAMETER name:<this> type:<root>.EmptyArrayMap.iterator.<no name provided>
BLOCK_BODY
RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Nothing declared in <root>.EmptyArrayMap.iterator.<no name provided>'
THROW type=kotlin.Nothing
CONSTRUCTOR_CALL 'public constructor <init> () declared in java.util.NoSuchElementException' type=java.util.NoSuchElementException origin=null
THROW type=kotlin.Nothing
CONSTRUCTOR_CALL 'public constructor <init> () declared in java.util.NoSuchElementException' type=java.util.NoSuchElementException origin=null
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
overridden:
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterator