Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: pkg/front_end/testcases/rasta/issue_000044.dart.direct.expect

Issue 2976283002: Update expectations. (Closed)
Patch Set: Update compile.status. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 class C extends core::Object { 5 class C extends core::Object {
6 const constructor constant() → dynamic 6 static field dynamic _redirecting# = <dynamic>[self::C::good];
7 const constructor constant() → void
7 : super core::Object::•() 8 : super core::Object::•()
8 ; 9 ;
9 constructor missingFactoryKeyword() → dynamic 10 constructor missingFactoryKeyword() → void
10 : super core::Object::•() 11 : super core::Object::•()
11 invalid-statement; 12 const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError ::•("pkg/front_end/testcases/rasta/issue_000044.dart:14:31: Error: Can't return from a constructor.\n C.missingFactoryKeyword() = C.constant;\n ^"));
12 static factory good() → self::C 13 static factory good() → self::C
13 invalid-statement; 14 let dynamic #redirecting_factory = self::C::constant in invalid-expression;
14 method notEvenAConstructor(dynamic a) → self::C 15 method notEvenAConstructor(dynamic a) → self::C
15 invalid-statement; 16 invalid-statement;
16 } 17 }
17 static method b() → dynamic 18 static method b(dynamic c) → invalid-type
18 invalid-statement; 19 return throw new core::NoSuchMethodError::_withType(null, #d, 33, <dynamic>[]. toList(growable: false), <dynamic, dynamic>{}, null);
19 static method main() → dynamic { 20 static method main() → dynamic {
20 self::C c = null; 21 self::C c = null;
21 core::print(const self::C::constant()); 22 core::print(const self::C::constant());
22 core::print(invalid-expression); 23 core::print(const core::_ConstantExpressionError::•()._throw(new core::_Compil eTimeError::•("pkg/front_end/testcases/rasta/issue_000044.dart:27:15: Error: Not a const constructor.\n print(const C.missingFactoryKeyword());\n ^")));
23 core::print(const self::C::constant()); 24 core::print(const self::C::constant());
24 core::print(new self::C::constant().notEvenAConstructor(null)); 25 core::print(new self::C::constant().notEvenAConstructor(null));
25 } 26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698