blob: 3149f8cb5db324b2bf58ca213ffcb2a5c8be0ab1 [file] [log] [blame] [edit]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr<num?>' can't be assigned to the parameter type 'Object'.
// - 'Object' is from 'dart:core'.
// foo(z); // Error.
// ^
//
import self as self;
import "dart:core" as core;
import "dart:async";
static method foo(core::Object x) dynamic {}
static method bar(core::bool condition) dynamic {
has-declared-initializer FutureOr<core::int?>x = null;
core::num n = 1;
FutureOr<core::num?>z = condition ?{FutureOr<core::num?>} x : n;
self::foo(invalid-expression "pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr<num?>' can't be assigned to the parameter type 'Object'.
- 'Object' is from 'dart:core'.
foo(z); // Error.
^" in z as{TypeError} core::Object);
}
static method main() dynamic {}