// 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. import 'dart:async'; import 'package:expect/expect.dart'; get b => 499; @pragma('dart2js:noInline') get b_noInline => b; const b0 = 499 is FutureOr; final b1 = 499 is FutureOr; get b2 => 499 is FutureOr; get b3 => b is FutureOr; get b4 => b_noInline is FutureOr; get c => 499; @pragma('dart2js:noInline') get c_noInline => c; const c0 = 499 is FutureOr>; final c1 = 499 is FutureOr>; get c2 => 499 is FutureOr>; get c3 => c is FutureOr>; get c4 => c_noInline is FutureOr>; get d => 499.0; @pragma('dart2js:noInline') get d_noInline => d; const d0 = 499.0 is FutureOr; final d1 = 499.0 is FutureOr; get d2 => 499.0 is FutureOr; get d3 => d is FutureOr; get d4 => d_noInline is FutureOr; get e => 499; @pragma('dart2js:noInline') get e_noInline => e; const e0 = 499 is FutureOr; final e1 = 499 is FutureOr; get e2 => 499 is FutureOr; get e3 => e is FutureOr; get e4 => e_noInline is FutureOr; get f => 499; @pragma('dart2js:noInline') get f_noInline => f; const f0 = 499 is FutureOr>; final f1 = 499 is FutureOr>; get f2 => 499 is FutureOr>; get f3 => f is FutureOr>; get f4 => f_noInline is FutureOr>; test(fromConst, fromFinal, fromImplicitConstant, fromInlined, fromRuntime) { Expect.equals(fromRuntime, fromConst); Expect.equals(fromRuntime, fromFinal); Expect.equals(fromRuntime, fromInlined); Expect.equals(fromRuntime, fromImplicitConstant); } main() { test(b0, b1, b2, b3, b4); test(c0, c1, c2, c3, c4); test(d0, d1, d2, d3, d4); test(e0, e1, e2, e3, e4); test(f0, f1, f2, f3, f4); }