blob: a0fd402b1505e6040e27749f6feef30d7c23eb65 [file]
// Copyright (c) 2022, 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.
method((int,{String a})? r) {
var l0 = r.$0; // Error.
var l1 = r.a; // Error.
var l2 = r?.$0;
var l3 = r?.a;
if (r != null) {
var l4 = r.$0;
var l5 = r.a;
var l6 = r?.$0; // Warning.
var l7 = r?.a; // Warning.
}
}