FIR checker: add diagnostics for backing fields
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a88b82d8ff
commit
bd37badf29
Vendored
+1
-1
@@ -56,7 +56,7 @@ val topLevelAnonymousFunction = fun (x: Boolean) {
|
||||
contract { returns() implies (x) }
|
||||
}
|
||||
|
||||
var topLevelPropertyAccessors: Int? = 42
|
||||
var topLevelPropertyAccessors: Int? = <!PROPERTY_INITIALIZER_NO_BACKING_FIELD!>42<!>
|
||||
get() {
|
||||
contract { returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null) }
|
||||
return 42
|
||||
|
||||
Vendored
+1
-1
@@ -71,7 +71,7 @@ val topLevelAnonymousFunction = fun (x: Boolean) {
|
||||
contract { returns() implies (x) }
|
||||
}
|
||||
|
||||
var topLevelPropertyAccessors: Int? = 42
|
||||
var topLevelPropertyAccessors: Int? = <!PROPERTY_INITIALIZER_NO_BACKING_FIELD!>42<!>
|
||||
get() {
|
||||
contract { returns() implies (<!UNRESOLVED_REFERENCE!>field<!> != null) }
|
||||
return 42
|
||||
|
||||
Reference in New Issue
Block a user