[FIR] Add the new test set to render diagnostics from IR const evaluator
This commit is contained in:
-15
@@ -1,15 +0,0 @@
|
||||
// FIR_IDENTICAL
|
||||
// !RENDER_ALL_DIAGNOSTICS_FULL_TEXT
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// !DIAGNOSTICS: -CONST_VAL_WITH_NON_CONST_INITIALIZER, -DIVISION_BY_ZERO
|
||||
// WITH_STDLIB
|
||||
|
||||
const val divideByZero = <!EXCEPTION_IN_CONST_VAL_INITIALIZER!>1 / 0<!>
|
||||
val disivionByZeroWarn = <!EXCEPTION_IN_CONST_EXPRESSION!>1 / 0<!>
|
||||
const val trimMarginException = "123".<!EXCEPTION_IN_CONST_VAL_INITIALIZER!>trimMargin(" ")<!>
|
||||
|
||||
// TODO must report all these exceptions directly from fir2ir
|
||||
//annotation class A(val i: Int, val b: Int)
|
||||
//
|
||||
//@A(1 / 0, 2)
|
||||
//fun foo() {}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
package
|
||||
|
||||
public val disivionByZeroWarn: kotlin.Int
|
||||
public const val divideByZero: kotlin.Int
|
||||
public const val trimMarginException: kotlin.String
|
||||
Reference in New Issue
Block a user