Files
sdk/pkg/front_end/testcases/nnbd_mixed/issue42660.dart
T
Johnni Winther 84e5eeaea4 [cfe] Ensure legacy result types for invocation and access in opt-out libraries (part 2)
- now also for binary, unary, index-get expressions

Related to #42660

Change-Id: I1bf656a901b64ec916596508167330a235f6c7e4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154941
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-07-21 07:45:44 +00:00

22 lines
480 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.
// @dart=2.8
import 'issue42660_lib.dart';
void main() {
f().m();
(f)().m();
p.m();
var c = new Class();
c.f().m();
(c.f)().m();
c.p.m();
c[0].m();
(-c).m();
(c + 4).m();
c..p.m()..f().m()..[0].m();
new Class()..p.m()..f().m()..[0].m();
}