e4048261c2
+ 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>
20 lines
414 B
Dart
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() {}
|