[FIR] Add correctly reported diagnostics to testdata
This commit is contained in:
committed by
TeamCityServer
parent
1f1065d858
commit
0ab4770f02
+2
-2
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -INFIX_MODIFIER_REQUIRED
|
||||
|
||||
inline var value: (p: Int) -> String
|
||||
get() = {"123" }
|
||||
set(s: (p: Int) -> String) {
|
||||
s(11)
|
||||
s.invoke(11)
|
||||
s invoke 11
|
||||
|
||||
val z = s
|
||||
}
|
||||
|
||||
inline var value2: Int.(p: Int) -> String
|
||||
get() = {"123" }
|
||||
set(ext: Int.(p: Int) -> String) {
|
||||
11.ext(11)
|
||||
11.ext(11)
|
||||
|
||||
val p = ext
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -INFIX_MODIFIER_REQUIRED
|
||||
|
||||
inline var value: (p: Int) -> String
|
||||
|
||||
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