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

Side by Side Diff: pkg/dev_compiler/tool/sdk_expected_errors.txt

Issue 2456803004: fixes #27586, prefer context type in generic inference (Closed)
Patch Set: wip Created 3 years, 11 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 [error] Couldn't infer type parameter 'T'; '_ControllerEventSinkWrapper<dynamic> ' must be of type 'EventSink<T>'. (dart:async/stream.dart, line 1346, col 16) 1 [error] Couldn't infer type parameter 'T'.
2 [error] The argument type '_ControllerEventSinkWrapper' can't be assigned to the parameter type 'EventSink<T>'. (dart:async/stream.dart, line 1346, col 53) 2
3 Tried '_ControllerEventSinkWrapper<dynamic>' but this did not work with all cons traints:
4 Argument 'f' inferred as '(EventSink<T>) → dynamic' must be a '( T) → R'.
5 Argument 'arg' inferred as '_ControllerEventSinkWrapper<dynamic>' must be a 'T '.
6
7 Consider passing explicit type argument(s) to the generic.
8
9 (dart:async/stream.dart, line 1346, col 16)
10 [error] The argument type 'ZoneUnaryCallback(EventSink<T>) → dynamic' can't be a ssigned to the parameter type '(_ControllerEventSinkWrapper<dynamic>) → dynamic' . (dart:async/stream.dart, line 1346, col 32)
3 [error] Invalid override. The type of 'ChunkedConverter.bind' ('(dynamic) → dyna mic') isn't a subtype of 'Converter<S, T>.bind' ('(Stream<S>) → Stream<T>'). (da rt:convert/chunked_conversion.dart, line 14, col 3) 11 [error] Invalid override. The type of 'ChunkedConverter.bind' ('(dynamic) → dyna mic') isn't a subtype of 'Converter<S, T>.bind' ('(Stream<S>) → Stream<T>'). (da rt:convert/chunked_conversion.dart, line 14, col 3)
4 [error] Invalid override. The type of 'ChunkedConverter.bind' ('(dynamic) → dyna mic') isn't a subtype of 'StreamTransformer<S, T>.bind' ('(Stream<S>) → Stream<T >'). (dart:convert/chunked_conversion.dart, line 14, col 3) 12 [error] Invalid override. The type of 'ChunkedConverter.bind' ('(dynamic) → dyna mic') isn't a subtype of 'StreamTransformer<S, T>.bind' ('(Stream<S>) → Stream<T >'). (dart:convert/chunked_conversion.dart, line 14, col 3)
5 [error] Invalid override. The type of 'ChunkedConverter.startChunkedConversion' ('(dynamic) → dynamic') isn't a subtype of 'Converter<S, T>.startChunkedConversi on' ('(Sink<T>) → Sink<S>'). (dart:convert/chunked_conversion.dart, line 15, col 3) 13 [error] Invalid override. The type of 'ChunkedConverter.startChunkedConversion' ('(dynamic) → dynamic') isn't a subtype of 'Converter<S, T>.startChunkedConversi on' ('(Sink<T>) → Sink<S>'). (dart:convert/chunked_conversion.dart, line 15, col 3)
6 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/bool.dart, line 41, col 9) 14 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/bool.dart, line 41, col 9)
7 [error] Const constructors can't throw exceptions. (dart:core/bool.dart, line 42 , col 5) 15 [error] Const constructors can't throw exceptions. (dart:core/bool.dart, line 42 , col 5)
8 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/int.dart, line 33, col 9) 16 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/int.dart, line 33, col 9)
9 [error] Const constructors can't throw exceptions. (dart:core/int.dart, line 34, col 5) 17 [error] Const constructors can't throw exceptions. (dart:core/int.dart, line 34, col 5)
10 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/string.dart, line 156, col 9) 18 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/string.dart, line 156, col 9)
11 [error] Const constructors can't throw exceptions. (dart:core/string.dart, line 157, col 5) 19 [error] Const constructors can't throw exceptions. (dart:core/string.dart, line 157, col 5)
12 [error] Couldn't infer type parameter 'S'; 'RandomAccessFile' must be of type 'F ile'. (dart:io/file_impl.dart, line 216, col 19)
13 [error] The argument type '([dynamic]) → void' can't be assigned to the paramete r type '(_ConnectionInfo) → dynamic'. (dart:io/http_impl.dart, line 1633, col 19 ) 20 [error] The argument type '([dynamic]) → void' can't be assigned to the paramete r type '(_ConnectionInfo) → dynamic'. (dart:io/http_impl.dart, line 1633, col 19 )
14 [error] The return type 'StreamSubscription<int>' isn't a 'StreamSubscription<Li st<int>>', as defined by the method 'listen'. (dart:io/http_parser.dart, line 20 8, col 14) 21 [error] The return type 'StreamSubscription<int>' isn't a 'StreamSubscription<Li st<int>>', as defined by the method 'listen'. (dart:io/http_parser.dart, line 20 8, col 14)
15 [error] The argument type '(List<int>) → void' can't be assigned to the paramete r type '(int) → void'. (dart:io/http_parser.dart, line 209, col 19) 22 [error] The argument type '(List<int>) → void' can't be assigned to the paramete r type '(int) → void'. (dart:io/http_parser.dart, line 209, col 19)
16 [error] Couldn't infer type parameter 'V'; 'Object' must be of type 'String'. (d art:io/io_resource_info.dart, line 27, col 7) 23 [error] Couldn't infer type parameter 'V'.
24
25 Inferred 'String' based on the return type, but it does not satisfy all constrai nts:
26 Return type declared as 'Map<K, V>' must be a 'Map<String, String>'.
27 Map value inferred as 'String' must be a 'V'.
28 Map value inferred as 'int' must be a 'V'.
29
30 Consider passing explicit type argument(s) to the generic.
31
32 (dart:io/io_resource_info.dart, line 27, col 7)
17 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 30, col 15) 33 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 30, col 15)
18 [error] Couldn't infer type parameter 'V'; 'Object' must be of type 'String'. (d art:io/io_resource_info.dart, line 75, col 5) 34 [error] Couldn't infer type parameter 'V'.
35
36 Inferred 'String' based on the return type, but it does not satisfy all constrai nts:
37 Return type declared as 'Map<K, V>' must be a 'Map<String, String>'.
38 Map value inferred as 'String' must be a 'V'.
39 Map value inferred as 'int' must be a 'V'.
40 Map value inferred as 'double' must be a 'V'.
41
42 Consider passing explicit type argument(s) to the generic.
43
44 (dart:io/io_resource_info.dart, line 75, col 5)
19 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 77, col 13) 45 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 77, col 13)
20 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 79, col 20) 46 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 79, col 20)
21 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 80, col 23) 47 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 80, col 23)
22 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 81, col 20) 48 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 81, col 20)
23 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 82, col 21) 49 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 82, col 21)
24 [error] The element type 'double' can't be assigned to the map value type 'Strin g'. (dart:io/io_resource_info.dart, line 83, col 19) 50 [error] The element type 'double' can't be assigned to the map value type 'Strin g'. (dart:io/io_resource_info.dart, line 83, col 19)
25 [error] The element type 'double' can't be assigned to the map value type 'Strin g'. (dart:io/io_resource_info.dart, line 84, col 20) 51 [error] The element type 'double' can't be assigned to the map value type 'Strin g'. (dart:io/io_resource_info.dart, line 84, col 20)
26 [error] Couldn't infer type parameter 'V'; 'Object' must be of type 'String'. (d art:io/io_resource_info.dart, line 159, col 5) 52 [error] Couldn't infer type parameter 'V'.
53
54 Inferred 'String' based on the return type, but it does not satisfy all constrai nts:
55 Return type declared as 'Map<K, V>' must be a 'Map<String, String>'.
56 Map value inferred as 'String' must be a 'V'.
57 Map value inferred as 'int' must be a 'V'.
58 Map value inferred as 'dynamic' must be a 'V'.
59 Map value inferred as 'double' must be a 'V'.
60
61 Consider passing explicit type argument(s) to the generic.
62
63 (dart:io/io_resource_info.dart, line 159, col 5)
27 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 161, col 13) 64 [error] The element type 'int' can't be assigned to the map value type 'String'. (dart:io/io_resource_info.dart, line 161, col 13)
28 [error] The element type 'double' can't be assigned to the map value type 'Strin g'. (dart:io/io_resource_info.dart, line 164, col 20) 65 [error] The element type 'double' can't be assigned to the map value type 'Strin g'. (dart:io/io_resource_info.dart, line 164, col 20)
29 [error] The argument type '([dynamic]) → void' can't be assigned to the paramete r type '(RawSocket) → dynamic'. (dart:io/secure_socket.dart, line 591, col 28) 66 [error] The argument type '([dynamic]) → void' can't be assigned to the paramete r type '(RawSocket) → dynamic'. (dart:io/secure_socket.dart, line 591, col 28)
30 [error] The argument type 'List' can't be assigned to the parameter type 'Iterab le<int>'. (dart:io/secure_socket.dart, line 1129, col 23) 67 [error] The argument type 'List' can't be assigned to the parameter type 'Iterab le<int>'. (dart:io/secure_socket.dart, line 1129, col 23)
31 [error] Undefined name 'lineMode'. (dart:io/stdio.dart, line 64, col 10) 68 [error] Undefined name 'lineMode'. (dart:io/stdio.dart, line 64, col 10)
32 [error] The name 'echoMode=' is already defined. (dart:io/stdio.dart, line 126, col 12) 69 [error] The name 'echoMode=' is already defined. (dart:io/stdio.dart, line 126, col 12)
33 [error] The name 'lineMode=' is already defined. (dart:io/stdio.dart, line 145, col 12) 70 [error] The name 'lineMode=' is already defined. (dart:io/stdio.dart, line 145, col 12)
34 [error] Couldn't infer type parameter 'S'; 'dynamic' must be of type 'WebSocket' . (dart:io/websocket_impl.dart, line 469, col 10) 71 [error] Couldn't infer type parameter 'S'.
72
73 Inferred 'WebSocket' based on the return type, but it does not satisfy all const raints:
74 Return type declared as 'Future<S>' must be a 'Future< WebSocket>'.
75 Argument 'onValue' inferred as '(String) → Future<dynamic>' must be a '(dynami c) → Future<S>'.
76
77 Consider passing explicit type argument(s) to the generic.
78
79 (dart:io/websocket_impl.dart, line 469, col 10)
35 [error] Invalid override. The type of 'JsArray.[]=' ('(Object, E) → void') isn't a subtype of 'JsObject.[]=' ('(Object, dynamic) → dynamic'). (dart:js, line 363 , col 3) 80 [error] Invalid override. The type of 'JsArray.[]=' ('(Object, E) → void') isn't a subtype of 'JsObject.[]=' ('(Object, dynamic) → dynamic'). (dart:js, line 363 , col 3)
36 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<String>'. This usua lly indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:_js_helper/regexp_helper.dart, line 140, col 43) 81 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<String>'. This usua lly indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:_js_helper/regexp_helper.dart, line 140, col 43)
37 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<String>'. This usua lly indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:_js_helper/regexp_helper.dart, line 152, col 43) 82 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<String>'. This usua lly indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:_js_helper/regexp_helper.dart, line 152, col 43)
38 [warning] Unsafe implicit cast from 'Object' to 'K'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will ha ve a failure at runtime. (dart:collection, line 411, col 49) 83 [warning] Unsafe implicit cast from 'Object' to 'K'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will ha ve a failure at runtime. (dart:collection, line 411, col 49)
39 [warning] Unsafe implicit cast from 'Object' to 'E'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will ha ve a failure at runtime. (dart:collection, line 758, col 14) 84 [warning] Unsafe implicit cast from 'Object' to 'E'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will ha ve a failure at runtime. (dart:collection, line 758, col 14)
40 [warning] Unsafe implicit cast from 'Object' to 'E'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will ha ve a failure at runtime. (dart:collection, line 1135, col 14) 85 [warning] Unsafe implicit cast from 'Object' to 'E'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will ha ve a failure at runtime. (dart:collection, line 1135, col 14)
41 [warning] The final variable 'origin' must be initialized. (dart:html, line 177, col 3) 86 [warning] The final variable 'origin' must be initialized. (dart:html, line 177, col 3)
42 [warning] The final variable 'origin' must be initialized. (dart:html, line 813, col 3) 87 [warning] The final variable 'origin' must be initialized. (dart:html, line 813, col 3)
43 [warning] The final variables 'form', 'labels' and '3' more must be initialized. (dart:html, line 1691, col 3) 88 [warning] The final variables 'form', 'labels' and '3' more must be initialized. (dart:html, line 1691, col 3)
44 [warning] The final variable 'options' must be initialized. (dart:html, line 897 2, col 3) 89 [warning] The final variable 'options' must be initialized. (dart:html, line 897 2, col 3)
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 [warning] The final variable 'sheet' must be initialized. (dart:svg, line 4634, col 3) 185 [warning] The final variable 'sheet' must be initialized. (dart:svg, line 4634, col 3)
141 [warning] The final variables 'ownerSvgElement' and 'viewportElement' must be in itialized. (dart:svg, line 5072, col 3) 186 [warning] The final variables 'ownerSvgElement' and 'viewportElement' must be in itialized. (dart:svg, line 5072, col 3)
142 [warning] The final variables 'currentTranslate', 'currentView' and '12' more mu st be initialized. (dart:svg, line 5386, col 3) 187 [warning] The final variables 'currentTranslate', 'currentView' and '12' more mu st be initialized. (dart:svg, line 5386, col 3)
143 [warning] The final variables 'preserveAspectRatio' and 'viewBox' must be initia lized. (dart:svg, line 5605, col 3) 188 [warning] The final variables 'preserveAspectRatio' and 'viewBox' must be initia lized. (dart:svg, line 5605, col 3)
144 [warning] The final variables 'lengthAdjust' and 'textLength' must be initialize d. (dart:svg, line 5677, col 3) 189 [warning] The final variables 'lengthAdjust' and 'textLength' must be initialize d. (dart:svg, line 5677, col 3)
145 [warning] The final variables 'href', 'method' and '2' more must be initialized. (dart:svg, line 5775, col 3) 190 [warning] The final variables 'href', 'method' and '2' more must be initialized. (dart:svg, line 5775, col 3)
146 [warning] The final variables 'dx', 'dy' and '3' more must be initialized. (dart :svg, line 5836, col 3) 191 [warning] The final variables 'dx', 'dy' and '3' more must be initialized. (dart :svg, line 5836, col 3)
147 [warning] The final variables 'height', 'href' and '3' more must be initialized. (dart:svg, line 6126, col 3) 192 [warning] The final variables 'height', 'href' and '3' more must be initialized. (dart:svg, line 6126, col 3)
148 [warning] The final variables 'preserveAspectRatio', 'viewBox' and '1' more must be initialized. (dart:svg, line 6171, col 3) 193 [warning] The final variables 'preserveAspectRatio', 'viewBox' and '1' more must be initialized. (dart:svg, line 6171, col 3)
149 [warning] The final variables 'gradientTransform', 'gradientUnits' and '2' more must be initialized. (dart:svg, line 6325, col 3) 194 [warning] The final variables 'gradientTransform', 'gradientUnits' and '2' more must be initialized. (dart:svg, line 6325, col 3)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698