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

Side by Side Diff: tool/sdk_expected_errors.txt

Issue 1173023004: fixes #217, Object members on extension types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « test/codegen/expect/misc.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 warning: line 80, column 12 of dart:_interceptors/js_array.dart: [DownCastCompos ite] JS('var', r'#.pop()', this) (dynamic) will need runtime check to cast to ty pe E 1 warning: line 80, column 12 of dart:_interceptors/js_array.dart: [DownCastCompos ite] JS('var', r'#.pop()', this) (dynamic) will need runtime check to cast to ty pe E
2 return JS('var', r'#.pop()', this); 2 return JS('var', r'#.pop()', this);
3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 warning: line 125, column 9 of dart:_interceptors/js_array.dart: [DownCastCompos ite] JS('', '#[#]', this, i) (dynamic) will need runtime check to cast to type E 4 warning: line 125, column 9 of dart:_interceptors/js_array.dart: [DownCastCompos ite] JS('', '#[#]', this, i) (dynamic) will need runtime check to cast to type E
5 f(JS('', '#[#]', this, i)); 5 f(JS('', '#[#]', this, i));
6 ^^^^^^^^^^^^^^^^^^^^^^^ 6 ^^^^^^^^^^^^^^^^^^^^^^^
7 warning: line 161, column 12 of dart:_interceptors/js_array.dart: [DownCastCompo site] IterableMixinWorkaround.reduce(this, combine) (dynamic) will need runtime check to cast to type E 7 warning: line 161, column 12 of dart:_interceptors/js_array.dart: [DownCastCompo site] IterableMixinWorkaround.reduce(this, combine) (dynamic) will need runtime check to cast to type E
8 return IterableMixinWorkaround.reduce(this, combine); 8 return IterableMixinWorkaround.reduce(this, combine);
9 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 warning: line 169, column 12 of dart:_interceptors/js_array.dart: [DownCastCompo site] IterableMixinWorkaround.firstWhere(this, test, orElse) (dynamic) will need runtime check to cast to type E 10 warning: line 169, column 12 of dart:_interceptors/js_array.dart: [DownCastCompo site] IterableMixinWorkaround.firstWhere(this, test, orElse) (dynamic) will need runtime check to cast to type E
(...skipping 16 matching lines...) Expand all
27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 warning: line 89, column 14 of dart:_interceptors/js_number.dart: [DownCastImpli cit] JS('num', r'-Math.round(-#)', this) (num) will need runtime check to cast t o type double 28 warning: line 89, column 14 of dart:_interceptors/js_number.dart: [DownCastImpli cit] JS('num', r'-Math.round(-#)', this) (num) will need runtime check to cast t o type double
29 return JS('num', r'-Math.round(-#)', this); 29 return JS('num', r'-Math.round(-#)', this);
30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 warning: line 91, column 14 of dart:_interceptors/js_number.dart: [DownCastImpli cit] JS('num', r'Math.round(#)', this) (num) will need runtime check to cast to type double 31 warning: line 91, column 14 of dart:_interceptors/js_number.dart: [DownCastImpli cit] JS('num', r'Math.round(#)', this) (num) will need runtime check to cast to type double
32 return JS('num', r'Math.round(#)', this); 32 return JS('num', r'Math.round(#)', this);
33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 severe: line 110, column 17 of dart:_interceptors/js_number.dart: [StaticTypeErr or] Type check failed: this (JSNumber) is not of type double 34 severe: line 110, column 17 of dart:_interceptors/js_number.dart: [StaticTypeErr or] Type check failed: this (JSNumber) is not of type double
35 toDouble() => this; 35 toDouble() => this;
36 ^^^^ 36 ^^^^
37 severe: line 347, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.abs (( ) → num) is not a subtype of int.abs (() → int). 37 severe: line 349, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.abs (( ) → num) is not a subtype of int.abs (() → int).
38 class JSInt extends JSNumber implements int, double { 38 class JSInt extends JSNumber implements int, double {
39 ^^^^^^^^^^^^^^^^ 39 ^^^^^^^^^^^^^^^^
40 severe: line 347, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.unary- (() → num) is not a subtype of int.unary- (() → int). 40 severe: line 349, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.unary- (() → num) is not a subtype of int.unary- (() → int).
41 class JSInt extends JSNumber implements int, double { 41 class JSInt extends JSNumber implements int, double {
42 ^^^^^^^^^^^^^^^^ 42 ^^^^^^^^^^^^^^^^
43 severe: line 347, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.<< ((n um) → num) is not a subtype of int.<< ((int) → int). 43 severe: line 349, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.<< ((n um) → num) is not a subtype of int.<< ((int) → int).
44 class JSInt extends JSNumber implements int, double { 44 class JSInt extends JSNumber implements int, double {
45 ^^^^^^^^^^^^^^^^ 45 ^^^^^^^^^^^^^^^^
46 severe: line 347, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.>> ((n um) → num) is not a subtype of int.>> ((int) → int). 46 severe: line 349, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.>> ((n um) → num) is not a subtype of int.>> ((int) → int).
47 class JSInt extends JSNumber implements int, double { 47 class JSInt extends JSNumber implements int, double {
48 ^^^^^^^^^^^^^^^^ 48 ^^^^^^^^^^^^^^^^
49 severe: line 347, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.& ((nu m) → num) is not a subtype of int.& ((int) → int). 49 severe: line 349, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.& ((nu m) → num) is not a subtype of int.& ((int) → int).
50 class JSInt extends JSNumber implements int, double { 50 class JSInt extends JSNumber implements int, double {
51 ^^^^^^^^^^^^^^^^ 51 ^^^^^^^^^^^^^^^^
52 severe: line 347, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.| ((nu m) → num) is not a subtype of int.| ((int) → int). 52 severe: line 349, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.| ((nu m) → num) is not a subtype of int.| ((int) → int).
53 class JSInt extends JSNumber implements int, double { 53 class JSInt extends JSNumber implements int, double {
54 ^^^^^^^^^^^^^^^^ 54 ^^^^^^^^^^^^^^^^
55 severe: line 347, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.^ ((nu m) → num) is not a subtype of int.^ ((int) → int). 55 severe: line 349, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.^ ((nu m) → num) is not a subtype of int.^ ((int) → int).
56 class JSInt extends JSNumber implements int, double { 56 class JSInt extends JSNumber implements int, double {
57 ^^^^^^^^^^^^^^^^ 57 ^^^^^^^^^^^^^^^^
58 severe: line 347, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.sign ( () → num) is not a subtype of int.sign (() → int). 58 severe: line 349, column 13 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.sign ( () → num) is not a subtype of int.sign (() → int).
59 class JSInt extends JSNumber implements int, double { 59 class JSInt extends JSNumber implements int, double {
60 ^^^^^^^^^^^^^^^^ 60 ^^^^^^^^^^^^^^^^
61 warning: line 355, column 12 of dart:_interceptors/js_number.dart: [DownCastImpl icit] this & ((1 << width) - 1) (num) will need runtime check to cast to type in t 61 warning: line 357, column 12 of dart:_interceptors/js_number.dart: [DownCastImpl icit] this & ((1 << width) - 1) (num) will need runtime check to cast to type in t
62 return this & ((1 << width) - 1); 62 return this & ((1 << width) - 1);
63 ^^^^^^^^^^^^^^^^^^^^^^^^^ 63 ^^^^^^^^^^^^^^^^^^^^^^^^^
64 warning: line 360, column 12 of dart:_interceptors/js_number.dart: [DownCastImpl icit] (this & (signMask - 1)) - (this & signMask) (num) will need runtime check to cast to type int 64 warning: line 362, column 12 of dart:_interceptors/js_number.dart: [DownCastImpl icit] (this & (signMask - 1)) - (this & signMask) (num) will need runtime check to cast to type int
65 return (this & (signMask - 1)) - (this & signMask); 65 return (this & (signMask - 1)) - (this & signMask);
66 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 66 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 severe: line 418, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.remain der ((num) → num) is not a subtype of double.remainder ((num) → double). 67 severe: line 420, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.remain der ((num) → num) is not a subtype of double.remainder ((num) → double).
68 class JSDouble extends JSNumber implements double { 68 class JSDouble extends JSNumber implements double {
69 ^^^^^^^^^^^^^^^^ 69 ^^^^^^^^^^^^^^^^
70 severe: line 418, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.abs (( ) → num) is not a subtype of double.abs (() → double). 70 severe: line 420, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.abs (( ) → num) is not a subtype of double.abs (() → double).
71 class JSDouble extends JSNumber implements double { 71 class JSDouble extends JSNumber implements double {
72 ^^^^^^^^^^^^^^^^ 72 ^^^^^^^^^^^^^^^^
73 severe: line 418, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.unary- (() → num) is not a subtype of double.unary- (() → double). 73 severe: line 420, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.unary- (() → num) is not a subtype of double.unary- (() → double).
74 class JSDouble extends JSNumber implements double { 74 class JSDouble extends JSNumber implements double {
75 ^^^^^^^^^^^^^^^^ 75 ^^^^^^^^^^^^^^^^
76 severe: line 418, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.+ ((nu m) → num) is not a subtype of double.+ ((num) → double). 76 severe: line 420, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.+ ((nu m) → num) is not a subtype of double.+ ((num) → double).
77 class JSDouble extends JSNumber implements double { 77 class JSDouble extends JSNumber implements double {
78 ^^^^^^^^^^^^^^^^ 78 ^^^^^^^^^^^^^^^^
79 severe: line 418, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.- ((nu m) → num) is not a subtype of double.- ((num) → double). 79 severe: line 420, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.- ((nu m) → num) is not a subtype of double.- ((num) → double).
80 class JSDouble extends JSNumber implements double { 80 class JSDouble extends JSNumber implements double {
81 ^^^^^^^^^^^^^^^^ 81 ^^^^^^^^^^^^^^^^
82 severe: line 418, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.* ((nu m) → num) is not a subtype of double.* ((num) → double). 82 severe: line 420, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.* ((nu m) → num) is not a subtype of double.* ((num) → double).
83 class JSDouble extends JSNumber implements double { 83 class JSDouble extends JSNumber implements double {
84 ^^^^^^^^^^^^^^^^ 84 ^^^^^^^^^^^^^^^^
85 severe: line 418, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.% ((nu m) → num) is not a subtype of double.% ((num) → double). 85 severe: line 420, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.% ((nu m) → num) is not a subtype of double.% ((num) → double).
86 class JSDouble extends JSNumber implements double { 86 class JSDouble extends JSNumber implements double {
87 ^^^^^^^^^^^^^^^^ 87 ^^^^^^^^^^^^^^^^
88 severe: line 418, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.sign ( () → num) is not a subtype of double.sign (() → double). 88 severe: line 420, column 16 of dart:_interceptors/js_number.dart: [InvalidMethod Override] Base class introduces an invalid override. The type of JSNumber.sign ( () → num) is not a subtype of double.sign (() → double).
89 class JSDouble extends JSNumber implements double { 89 class JSDouble extends JSNumber implements double {
90 ^^^^^^^^^^^^^^^^ 90 ^^^^^^^^^^^^^^^^
91 warning: line 86, column 14 of dart:_interceptors/js_string.dart: [DownCastCompo site] JS('JSExtendableArray', r'#.split(#)', this, pattern) (dynamic) will need runtime check to cast to type List<String> 91 warning: line 86, column 14 of dart:_interceptors/js_string.dart: [DownCastCompo site] JS('JSExtendableArray', r'#.split(#)', this, pattern) (dynamic) will need runtime check to cast to type List<String>
92 return JS('JSExtendableArray', r'#.split(#)', this, pattern); 92 return JS('JSExtendableArray', r'#.split(#)', this, pattern);
93 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 93 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94 warning: line 89, column 14 of dart:_interceptors/js_string.dart: [DownCastCompo site] JS('JSExtendableArray', r'#.split(#)', this, re) (dynamic) will need runti me check to cast to type List<String> 94 warning: line 89, column 14 of dart:_interceptors/js_string.dart: [DownCastCompo site] JS('JSExtendableArray', r'#.split(#)', this, re) (dynamic) will need runti me check to cast to type List<String>
95 return JS('JSExtendableArray', r'#.split(#)', this, re); 95 return JS('JSExtendableArray', r'#.split(#)', this, re);
96 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 96 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97 severe: line 346, column 7 of dart:_interceptors/js_string.dart: [StaticTypeErro r] Type check failed: s += s (String) is not of type JSString 97 severe: line 346, column 7 of dart:_interceptors/js_string.dart: [StaticTypeErro r] Type check failed: s += s (String) is not of type JSString
98 s += s; 98 s += s;
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 ^^^^^^^^^^^^^^^^ 1068 ^^^^^^^^^^^^^^^^
1069 warning: line 1869, column 12 of dart:core/uri.dart: [DownCastComposite] query.s plit("&").fold({}, (map, element) {int index = element.indexOf("="); if (index = = -1) {if (element != "") {map[decodeQueryComponent(element, encoding: encoding) ] = "";}} else if (index != 0) {var key = element.substring(0, index); var value = element.substring(index + 1); map[Uri.decodeQueryComponent(key, encoding: enc oding)] = decodeQueryComponent(value, encoding: encoding);} return map;}) (dynam ic) will need runtime check to cast to type Map<String, String> 1069 warning: line 1869, column 12 of dart:core/uri.dart: [DownCastComposite] query.s plit("&").fold({}, (map, element) {int index = element.indexOf("="); if (index = = -1) {if (element != "") {map[decodeQueryComponent(element, encoding: encoding) ] = "";}} else if (index != 0) {var key = element.substring(0, index); var value = element.substring(index + 1); map[Uri.decodeQueryComponent(key, encoding: enc oding)] = decodeQueryComponent(value, encoding: encoding);} return map;}) (dynam ic) will need runtime check to cast to type Map<String, String>
1070 return query.split("&").fold({}, (map, element) { 1070 return query.split("&").fold({}, (map, element) {
1071 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1071 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1072 warning: line 1901, column 12 of dart:core/uri.dart: [DownCastComposite] bytes.m ap((byteString) {int byte = int.parse(byteString); if (byte < 0 || byte > 255) { error('each part must be in the range of `0..255`');} return byte;}).toList() (L ist<dynamic>) will need runtime check to cast to type List<int> 1072 warning: line 1901, column 12 of dart:core/uri.dart: [DownCastComposite] bytes.m ap((byteString) {int byte = int.parse(byteString); if (byte < 0 || byte > 255) { error('each part must be in the range of `0..255`');} return byte;}).toList() (L ist<dynamic>) will need runtime check to cast to type List<int>
1073 return bytes 1073 return bytes
1074 ^^^^^^ 1074 ^^^^^^
1075 warning: line 2023, column 12 of dart:core/uri.dart: [DownCastComposite] bytes ( List<dynamic>) will need runtime check to cast to type List<int> 1075 warning: line 2023, column 12 of dart:core/uri.dart: [DownCastComposite] bytes ( List<dynamic>) will need runtime check to cast to type List<int>
1076 return bytes; 1076 return bytes;
1077 ^^^^^ 1077 ^^^^^
OLDNEW
« no previous file with comments | « test/codegen/expect/misc.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698