blob: e9d28b124c9d276f75f9cf03332884906ece4b5e [file] [log] [blame]
//
// Problems in component:
//
// pkg/front_end/testcases/general_nnbd_opt_out/error_locations/error_location_02_lib3.dart:9:19: Error: Constant evaluation error:
// const fooField2 = fooField;
// ^
// pkg/front_end/testcases/general_nnbd_opt_out/error_locations/error_location_02_lib1.dart:8:31: Context: This assertion failed.
// const Foo(int i) : assert(i > 0);
// ^
// pkg/front_end/testcases/general_nnbd_opt_out/error_locations/error_location_02_lib3.dart:9:7: Context: While analyzing:
// const fooField2 = fooField;
// ^
//
// pkg/front_end/testcases/general_nnbd_opt_out/error_locations/error_location_02_lib2.dart:9:24: Error: Constant evaluation error:
// const fooField = const Foo(0);
// ^
// pkg/front_end/testcases/general_nnbd_opt_out/error_locations/error_location_02_lib1.dart:8:31: Context: This assertion failed.
// const Foo(int i) : assert(i > 0);
// ^
// pkg/front_end/testcases/general_nnbd_opt_out/error_locations/error_location_02_lib2.dart:9:7: Context: While analyzing:
// const fooField = const Foo(0);
// ^
//
library;
import self as self;
import "error_location_02_lib1.dart" as err;
import "dart:core" as core;
import "org-dartlang-testcase:///error_location_02_lib1.dart";
import "org-dartlang-testcase:///error_location_02_lib2.dart";
import "org-dartlang-testcase:///error_location_02_lib3.dart";
static method main() dynamic {
err::foo();
core::print(invalid-expression "This assertion failed.");
}
library;
import self as err;
import "dart:core" as core;
class Foo extends core::Object /*hasConstConstructor*/ {
const constructor •(core::int* i) err::Foo*
: assert(i.{core::num::>}(0)), super core::Object::•()
;
abstract member-signature get _identityHashCode() core::int*; -> core::Object::_identityHashCode
abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) core::bool*; -> core::Object::_instanceOf
abstract member-signature method _simpleInstanceOf(dynamic type) core::bool*; -> core::Object::_simpleInstanceOf
abstract member-signature method _simpleInstanceOfTrue(dynamic type) core::bool*; -> core::Object::_simpleInstanceOfTrue
abstract member-signature method _simpleInstanceOfFalse(dynamic type) core::bool*; -> core::Object::_simpleInstanceOfFalse
abstract member-signature operator ==(dynamic other) core::bool*; -> core::Object::==
abstract member-signature get hashCode() core::int*; -> core::Object::hashCode
abstract member-signature method toString() core::String*; -> core::Object::toString
abstract member-signature method noSuchMethod(core::Invocation* invocation) dynamic; -> core::Object::noSuchMethod
abstract member-signature get runtimeType() core::Type*; -> core::Object::runtimeType
}
static method foo() dynamic {
new err::Foo::•(0);
}
library;
import self as self2;
import "error_location_02_lib1.dart" as err;
import "org-dartlang-testcase:///error_location_02_lib1.dart";
static const field err::Foo* fooField = invalid-expression "This assertion failed.";
library;
import self as self3;
import "error_location_02_lib1.dart" as err;
import "org-dartlang-testcase:///error_location_02_lib2.dart";
static const field err::Foo* fooField2 = invalid-expression "This assertion failed.";