[FIR] Expand divisionByZero.kt test case

Added two new cases:
1. division where denominator is `val` property
with zero initializer;
2. division where denominator is `const val` property
with zero initializer.

Both such cases have different sets of diagnostics compared to K1.

#KT-59894 Fixed
This commit is contained in:
Ivan Kylchik
2023-11-21 12:39:35 +01:00
committed by Space Team
parent 5dbe81fd7f
commit 1fcd277538
3 changed files with 9 additions and 0 deletions
@@ -1,5 +1,6 @@
package
public const val a: kotlin.Int = 0
public val a1: kotlin.Int = 0
public val a10: kotlin.Float = Infinity.toFloat()
public val a11: kotlin.Double = Infinity.toDouble()
@@ -14,6 +15,8 @@ public val a8: kotlin.Int
public val a9: kotlin.Int
public val b1: kotlin.Byte
@Ann public val b2: kotlin.Int = 1
@Ann public val b3: kotlin.Int = 1
@Ann public val b4: kotlin.Int = 1
public final annotation class Ann : kotlin.Annotation {
public constructor Ann(/*0*/ i: kotlin.Int)