blob: 6e4cf81cf7ef72542227ac872ef175b6591bdba6 [file] [log] [blame]
// Formatted problems:
//
// pkg/front_end/testcases/rasta/issue_000046.dart:6:13: Error: Expected '(' after 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 'Object' that isn't of expected type 'C'.
// - 'Object' is from 'dart:core'.
// - 'C' is from 'pkg/front_end/testcases/rasta/issue_000046.dart'.
// 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 '(' after 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 'Object' that isn't of expected type 'C'.
- 'Object' is from 'dart:core'.
- 'C' is from 'pkg/front_end/testcases/rasta/issue_000046.dart'.
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::•()
;
}