Files
sdk/pkg/front_end/parser_testcases/nnbd/issue_40805_03.dart
T
Jens Johansen 1b7b0bcc95 [parser] Allow covariant late final variables when it doesn't have an initializer
Bug: #40805
Change-Id: I94db171493ccb57f294928a3e2cec60740a09e91
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/137796
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2020-03-02 08:32:43 +00:00

5 lines
74 B
Dart

class C {
// Error. There is no setter.
covariant final int x = 42;
}