Files
sdk/pkg/front_end/testcases/nnbd/call.dart
T
Johnni Winther e4048261c2 [cfe] Compute correct type for read of late lowered variables
+ fix crash on null-aware function call.

Change-Id: Ie2eac4aa21ec615850352e6a5d1292e87f420c9d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133102
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-01-24 12:41:19 +00:00

20 lines
414 B
Dart

// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Class {
void Function()? field;
void Function()? get getter => null;
}
error() {
void Function()? f;
f();
f.call();
Class c = new Class();
c.field();
c.getter();
}
main() {}