[FIR] Add correctly reported diagnostics to testdata
This commit is contained in:
committed by
TeamCityServer
parent
1f1065d858
commit
0ab4770f02
Vendored
+3
-3
@@ -58,11 +58,11 @@ val topLevelAnonymousFunction = fun (x: Boolean) {
|
||||
|
||||
var topLevelPropertyAccessors: Int? = <!PROPERTY_INITIALIZER_NO_BACKING_FIELD!>42<!>
|
||||
get() {
|
||||
contract { returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null) }
|
||||
contract { <!ERROR_IN_CONTRACT_DESCRIPTION!>returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null)<!> }
|
||||
return 42
|
||||
}
|
||||
set(value) {
|
||||
contract { returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null) }
|
||||
contract { <!ERROR_IN_CONTRACT_DESCRIPTION!>returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null)<!> }
|
||||
}
|
||||
|
||||
|
||||
@@ -83,4 +83,4 @@ fun test() {
|
||||
val localLambda: (Boolean) -> Unit = { x: Boolean ->
|
||||
contract { returns() implies (x) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -73,11 +73,11 @@ val topLevelAnonymousFunction = fun (x: Boolean) {
|
||||
|
||||
var topLevelPropertyAccessors: Int? = <!PROPERTY_INITIALIZER_NO_BACKING_FIELD!>42<!>
|
||||
get() {
|
||||
contract { returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null) }
|
||||
contract { <!ERROR_IN_CONTRACT_DESCRIPTION!>returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null)<!> }
|
||||
return 42
|
||||
}
|
||||
set(value) {
|
||||
contract { returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null) }
|
||||
contract { <!ERROR_IN_CONTRACT_DESCRIPTION!>returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null)<!> }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user