blob: 9bf1bcb72c95bf9a3936d1f795703d821f23d62d [file] [log] [blame]
// Copyright (c) 2016, 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.
import 'package:expect/expect.dart';
mkOne() => 1;
mkNull() => null;
main() {
Expect.isTrue((mkOne() ?? 2) == 1);
Expect.isTrue((mkNull() ?? 2) == 2);
}