blob: 6c5f0e92ea55ca7274235c3b8d35f68dbc1e130d [file] [edit]
// Copyright (c) 2026, 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.
// SharedOptions=--enable-experiment=anonymous-methods
import 'package:expect/expect.dart';
void main() {
final int? x = 2;
Expect.isTrue((x != null).=> this ? x.isEven : false);
Expect.isTrue((x != null).(p) => p ? x.isEven : false);
}