blob: 20c715f6dc8c7aacfebae72b142d174b4a2a1d34 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/sdk_diagnostic.dart:5:7: Error: The non-abstract class 'C' is missing implementations for these members:
// - Iterable.iterator
// Try to either
// - provide an implementation,
// - inherit an implementation from a superclass or mixin,
// - mark the class as abstract, or
// - provide a 'noSuchMethod' implementation.
//
// class C extends Iterable<Object> {
// ^
// sdk/lib/core/iterable.dart:148:19: Context: 'Iterable.iterator' is defined here.
// Iterator<E> get iterator;
// ^^^^^^^^
//
// pkg/front_end/testcases/general/sdk_diagnostic.dart:12:8: Error: Too few positional arguments: 1 required, 0 given.
// print(incorrectArgument: "fisk");
// ^
// sdk/lib/core/print.dart:8:6: Context: Found this candidate, but the arguments don't match.
// void print(Object? object) {
// ^^^^^
//
import self as self;
import "dart:core" as core;
class C extends core::Iterable<core::Object> {
synthetic constructor •() self::C
: super core::Iterable::•()
;
}
static method test() dynamic {
invalid-expression "pkg/front_end/testcases/general/sdk_diagnostic.dart:12:8: Error: Too few positional arguments: 1 required, 0 given.
print(incorrectArgument: \"fisk\");
^";
}
static method main() dynamic {}