// Copyright (c) 2018, 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';

@NoInline()
method<T>() {
  /*!strong.*/
  /*strong.fields=[T],free=[T]*/
  dynamic local() => <T, int>{};
  return local;
}

@NoInline()
test(o) => o == null;

main() {
  Expect.isTrue(test(method<int>().call()));
  Expect.isTrue(test(method<String>().call()));
  Expect.isFalse(test(null));
}
