[FIR] Add correctly reported diagnostics to testdata

This commit is contained in:
Dmitriy Novozhilov
2021-06-30 13:19:26 +03:00
committed by TeamCityServer
parent 1f1065d858
commit 0ab4770f02
5 changed files with 8 additions and 27 deletions
@@ -14,7 +14,7 @@ var Any?.isNotNull: Boolean
set(value) {
contract {
returns() implies (this@isNotNull != null)
require(this != null)
<!ERROR_IN_CONTRACT_DESCRIPTION!>require(this != null)<!>
}
}
@@ -27,4 +27,4 @@ fun test_1(a: A?) {
fun test_2(a: A?) {
a.isNotNull = true
a.foo()
}
}