[FIR] Implement DIVISION_BY_ZERO diagnostics, fix tests

This commit is contained in:
Ivan Kochurkin
2021-04-08 18:48:42 +03:00
committed by TeamCityServer
parent 964bba3530
commit 847ab40707
14 changed files with 78 additions and 11 deletions
@@ -15,7 +15,7 @@ fun test3() {}
@Foo(c = [1f], b = [""], a = [1])
fun test4() {}
@Foo([1 + 2], ["Hello, " + "Kotlin"], [1 / 0f])
@Foo([1 + 2], ["Hello, " + "Kotlin"], [<!DIVISION_BY_ZERO!>1 / 0f<!>])
fun test5() {}
const val ONE = 1
@@ -23,7 +23,7 @@ fun test1_2() {}
@Ann2(*[])
fun test2() {}
@Ann3(a = *[0f, 1 / 0f])
@Ann3(a = *[0f, <!DIVISION_BY_ZERO!>1 / 0f<!>])
fun test3() {}
@Ann5(Ann4(*["/"]))