Skip to content

Commit c10de6e

Browse files
committed
Add exception about extension members in error about nullable receivers
1 parent 184fee5 commit c10de6e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

accepted/2.12/nnbd/feature-specification.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Status: Draft
66

77
## CHANGELOG
88

9+
2025.04.03
10+
- Add an exception for extension members in the error about nullable
11+
receivers.
12+
913
2021.07.28
1014
- Allow a constant factory constructor in a class with a late final instance
1115
variable.
@@ -531,7 +535,7 @@ location outside of the statement.
531535

532536
It is an error to call a method, setter, getter or operator on an expression
533537
whose type is potentially nullable and not `dynamic`, except for the methods,
534-
setters, getters, and operators on `Object`.
538+
setters, getters, and operators on `Object`, and except for extension members.
535539

536540
It is an error to read a field or tear off a method from an expression whose
537541
type is potentially nullable and not `dynamic`, except for the methods and

0 commit comments

Comments
 (0)