50cda7c5e3
Change-Id: Ie106341331f685650ac886f4b00218b806644ed5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/188722 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
36 lines
668 B
Dart
36 lines
668 B
Dart
// Copyright (c) 2021, 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.md file.
|
|
|
|
class Class {
|
|
int? field;
|
|
int? getter => null;
|
|
void setter(int? value) {}
|
|
void method() {}
|
|
}
|
|
|
|
test(Class c, dynamic d, Function f1, void Function() f2) {
|
|
c.field = c.field;
|
|
c.setter = c.getter;
|
|
c.method;
|
|
c.method();
|
|
d.field = d.field;
|
|
d.setter = d.getter;
|
|
d.method;
|
|
d.method();
|
|
f1();
|
|
f1.call;
|
|
f2();
|
|
f2.call;
|
|
local() {}
|
|
local();
|
|
c == d;
|
|
c != d;
|
|
c == null;
|
|
c != null;
|
|
d == null;
|
|
d != null;
|
|
}
|
|
|
|
main() {}
|