Files
sdk/pkg/front_end/testcases/none/new_method_invocation_encodings.dart
T
Johnni Winther 50cda7c5e3 [cfe] Support text serialization of new method invocation encodings
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>
2021-03-04 11:06:46 +00:00

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() {}