blob: e707fd6c1490d97dcafb060d89162890e05e7427 [file] [log] [blame]
// Formatted problems:
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:13: Error: Expected '(' before this.
// C c = new Object)();
// ^^^^^^
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:19: Error: Expected ';' after this.
// C c = new Object)();
// ^
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:19: Error: Expected a class member, but got ')'.
// C c = new Object)();
// ^
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:20: Error: Expected an identifier, but got '('.
// C c = new Object)();
// ^
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:13: Error: The constructor returns type 'dart.core::Object' that isn't of expected type '#lib1::C'.
// Change the type of the object being constructed or the context in which it is used.
// C c = new Object)();
// ^
// Unhandled errors:
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:13: Error: Expected '(' before this.
// C c = new Object)();
// ^^^^^^
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:19: Error: Expected ';' after this.
// C c = new Object)();
// ^
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:19: Error: Expected a class member, but got ')'.
// C c = new Object)();
// ^
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:20: Error: Expected an identifier, but got '('.
// C c = new Object)();
// ^
library;
import self as self;
import "dart:core" as core;
class C extends core::Object {
field self::C c = let final<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/rasta/issue_000046.dart:6:13: Error: The constructor returns type 'dart.core::Object' that isn't of expected type '#lib1::C'.
Change the type of the object being constructed or the context in which it is used.
C c = new Object)();
^" in new core::Object::•();
synthetic constructor •() → self::C
: super core::Object::•()
;
}