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

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: fix Created 3 years, 9 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 1359, 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 1359, col 53) 2
3 Inferred type '_ControllerEventSinkWrapper<dynamic>' does not work with constrai nts:
4 Argument 'action' inferred as '(EventSink<T>) → dynamic' must be a '(T) → R'.
5 The type '_ControllerEventSinkWrapper<dynamic>' was inferred from:
6 Argument 'argument' inferred as '_ControllerEventSinkWrapper<dynamic>' must be a 'T'.
7
8 Consider passing explicit type argument(s) to the generic.
9
10 (dart:async/stream.dart, line 1359, col 16)
11 [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 1359, col 32)
3 [error] Type parameter bound types must be instantiated. (dart:collection/queue. dart, line 99, col 32) 12 [error] Type parameter bound types must be instantiated. (dart:collection/queue. dart, line 99, col 32)
4 [error] Invalid override. The type of '_UnicodeSubsetEncoder.startChunkedConvers ion' ('(Sink<List<int>>) → StringConversionSink') isn't a subtype of 'ChunkedCon verter<String, List<int>, String, List<int>>.startChunkedConversion' ('(dynamic) → dynamic'). (dart:convert/ascii.dart, line 107, col 3) 13 [error] Invalid override. The type of '_UnicodeSubsetEncoder.startChunkedConvers ion' ('(Sink<List<int>>) → StringConversionSink') isn't a subtype of 'ChunkedCon verter<String, List<int>, String, List<int>>.startChunkedConversion' ('(dynamic) → dynamic'). (dart:convert/ascii.dart, line 107, col 3)
5 [error] Invalid override. The type of '_UnicodeSubsetEncoder.bind' ('(Stream<Str ing>) → Stream<List<int>>') isn't a subtype of 'ChunkedConverter<String, List<in t>, String, List<int>>.bind' ('(dynamic) → dynamic'). (dart:convert/ascii.dart, line 115, col 3) 14 [error] Invalid override. The type of '_UnicodeSubsetEncoder.bind' ('(Stream<Str ing>) → Stream<List<int>>') isn't a subtype of 'ChunkedConverter<String, List<in t>, String, List<int>>.bind' ('(dynamic) → dynamic'). (dart:convert/ascii.dart, line 115, col 3)
6 [error] Invalid override. The type of '_UnicodeSubsetDecoder.startChunkedConvers ion' ('(Sink<String>) → ByteConversionSink') isn't a subtype of 'ChunkedConverte r<List<int>, String, List<int>, String>.startChunkedConversion' ('(dynamic) → dy namic'). (dart:convert/ascii.dart, line 221, col 3) 15 [error] Invalid override. The type of '_UnicodeSubsetDecoder.startChunkedConvers ion' ('(Sink<String>) → ByteConversionSink') isn't a subtype of 'ChunkedConverte r<List<int>, String, List<int>, String>.startChunkedConversion' ('(dynamic) → dy namic'). (dart:convert/ascii.dart, line 221, col 3)
7 [error] Invalid override. The type of '_UnicodeSubsetDecoder.bind' ('(Stream<Lis t<int>>) → Stream<String>') isn't a subtype of 'ChunkedConverter<List<int>, Stri ng, List<int>, String>.bind' ('(dynamic) → dynamic'). (dart:convert/ascii.dart, line 224, col 3) 16 [error] Invalid override. The type of '_UnicodeSubsetDecoder.bind' ('(Stream<Lis t<int>>) → Stream<String>') isn't a subtype of 'ChunkedConverter<List<int>, Stri ng, List<int>, String>.bind' ('(dynamic) → dynamic'). (dart:convert/ascii.dart, line 224, col 3)
8 [error] Invalid override. The type of 'AsciiDecoder.startChunkedConversion' ('(S ink<String>) → ByteConversionSink') isn't a subtype of 'ChunkedConverter<List<in t>, String, List<int>, String>.startChunkedConversion' ('(dynamic) → dynamic'). (dart:convert/ascii.dart, line 237, col 3) 17 [error] Invalid override. The type of 'AsciiDecoder.startChunkedConversion' ('(S ink<String>) → ByteConversionSink') isn't a subtype of 'ChunkedConverter<List<in t>, String, List<int>, String>.startChunkedConversion' ('(dynamic) → dynamic'). (dart:convert/ascii.dart, line 237, col 3)
9 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<List<int>>) → Stream<String>') isn't a subtype of 'ChunkedConverter<Li st<int>, String, List<int>, String>.bind' ('(dynamic) → dynamic'). (dart:convert /base64.dart, line 207, col 21) 18 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<List<int>>) → Stream<String>') isn't a subtype of 'ChunkedConverter<Li st<int>, String, List<int>, String>.bind' ('(dynamic) → dynamic'). (dart:convert /base64.dart, line 207, col 21)
10 [error] Invalid override. The type of 'Base64Encoder.startChunkedConversion' ('( Sink<String>) → ByteConversionSink') isn't a subtype of 'ChunkedConverter<List<i nt>, String, List<int>, String>.startChunkedConversion' ('(dynamic) → dynamic'). (dart:convert/base64.dart, line 222, col 3) 19 [error] Invalid override. The type of 'Base64Encoder.startChunkedConversion' ('( Sink<String>) → ByteConversionSink') isn't a subtype of 'ChunkedConverter<List<i nt>, String, List<int>, String>.startChunkedConversion' ('(dynamic) → dynamic'). (dart:convert/base64.dart, line 222, col 3)
11 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<String>) → Stream<List<int>>') isn't a subtype of 'ChunkedConverter<St ring, List<int>, String, List<int>>.bind' ('(dynamic) → dynamic'). (dart:convert /base64.dart, line 479, col 21) 20 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<String>) → Stream<List<int>>') isn't a subtype of 'ChunkedConverter<St ring, List<int>, String, List<int>>.bind' ('(dynamic) → dynamic'). (dart:convert /base64.dart, line 479, col 21)
12 [error] Invalid override. The type of 'Base64Decoder.startChunkedConversion' ('( Sink<List<int>>) → StringConversionSink') isn't a subtype of 'ChunkedConverter<S tring, List<int>, String, List<int>>.startChunkedConversion' ('(dynamic) → dynam ic'). (dart:convert/base64.dart, line 493, col 3) 21 [error] Invalid override. The type of 'Base64Decoder.startChunkedConversion' ('( Sink<List<int>>) → StringConversionSink') isn't a subtype of 'ChunkedConverter<S tring, List<int>, String, List<int>>.startChunkedConversion' ('(dynamic) → dynam ic'). (dart:convert/base64.dart, line 493, col 3)
(...skipping 19 matching lines...) Expand all
32 [error] Const constructors can't throw exceptions. (dart:core/bool.dart, line 42 , col 5) 41 [error] Const constructors can't throw exceptions. (dart:core/bool.dart, line 42 , col 5)
33 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/int.dart, line 33, col 9) 42 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/int.dart, line 33, col 9)
34 [error] Const constructors can't throw exceptions. (dart:core/int.dart, line 34, col 5) 43 [error] Const constructors can't throw exceptions. (dart:core/int.dart, line 34, col 5)
35 [error] Annotation must be either a const variable reference or const constructo r invocation. (dart:core/stacktrace.dart, line 43, col 3) 44 [error] Annotation must be either a const variable reference or const constructo r invocation. (dart:core/stacktrace.dart, line 43, col 3)
36 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/string.dart, line 156, col 9) 45 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/string.dart, line 156, col 9)
37 [error] Const constructors can't throw exceptions. (dart:core/string.dart, line 157, col 5) 46 [error] Const constructors can't throw exceptions. (dart:core/string.dart, line 157, col 5)
38 [error] Annotation must be either a const variable reference or const constructo r invocation. (dart:developer, line 39, col 1) 47 [error] Annotation must be either a const variable reference or const constructo r invocation. (dart:developer, line 39, col 1)
39 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<List<int>>) → Stream<List<int>>') isn't a subtype of 'ChunkedConverter <List<int>, List<int>, List<int>, List<int>>.bind' ('(dynamic) → dynamic'). (dar t:io/data_transformer.dart, line 278, col 19) 48 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<List<int>>) → Stream<List<int>>') isn't a subtype of 'ChunkedConverter <List<int>, List<int>, List<int>, List<int>>.bind' ('(dynamic) → dynamic'). (dar t:io/data_transformer.dart, line 278, col 19)
40 [error] Invalid override. The type of 'ZLibEncoder.startChunkedConversion' ('(Si nk<List<int>>) → ByteConversionSink') isn't a subtype of 'ChunkedConverter<List< int>, List<int>, List<int>, List<int>>.startChunkedConversion' ('(dynamic) → dyn amic'). (dart:io/data_transformer.dart, line 370, col 3) 49 [error] Invalid override. The type of 'ZLibEncoder.startChunkedConversion' ('(Si nk<List<int>>) → ByteConversionSink') isn't a subtype of 'ChunkedConverter<List< int>, List<int>, List<int>, List<int>>.startChunkedConversion' ('(dynamic) → dyn amic'). (dart:io/data_transformer.dart, line 370, col 3)
41 [error] The argument type '(RandomAccessFile) → Future<RandomAccessFile>' can't be assigned to the parameter type '(RandomAccessFile) → FutureOr<File>'. (dart:i o/file_impl.dart, line 216, col 30) 50 [error] The argument type '(RandomAccessFile) → Future<RandomAccessFile>' can't be assigned to the parameter type '(RandomAccessFile) → FutureOr<File>'. (dart:i o/file_impl.dart, line 216, col 30)
42 [error] The return type 'Future' isn't a 'FutureOr<File>', as defined by the met hod ''. (dart:io/file_impl.dart, line 614, col 14) 51 [error] The return type 'Future<Object>' isn't a 'FutureOr<File>', as defined by the method ''. (dart:io/file_impl.dart, line 614, col 14)
43 [error] Undefined name 'lineMode'. (dart:io/stdio.dart, line 64, col 10) 52 [error] Undefined name 'lineMode'. (dart:io/stdio.dart, line 64, col 10)
44 [error] The name 'echoMode=' is already defined. (dart:io/stdio.dart, line 128, col 12) 53 [error] The name 'echoMode=' is already defined. (dart:io/stdio.dart, line 128, col 12)
45 [error] The name 'lineMode=' is already defined. (dart:io/stdio.dart, line 149, col 12) 54 [error] The name 'lineMode=' is already defined. (dart:io/stdio.dart, line 149, col 12)
46 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<String>) → Stream<List<int>>') isn't a subtype of 'ChunkedConverter<St ring, List<int>, String, List<int>>.bind' ('(dynamic) → dynamic'). (dart:io/stri ng_transformer.dart, line 45, col 31) 55 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<String>) → Stream<List<int>>') isn't a subtype of 'ChunkedConverter<St ring, List<int>, String, List<int>>.bind' ('(dynamic) → dynamic'). (dart:io/stri ng_transformer.dart, line 45, col 31)
47 [error] Invalid override. The type of '_WindowsCodePageEncoder.startChunkedConve rsion' ('(Sink<List<int>>) → StringConversionSink') isn't a subtype of 'ChunkedC onverter<String, List<int>, String, List<int>>.startChunkedConversion' ('(dynami c) → dynamic'). (dart:io/string_transformer.dart, line 61, col 3) 56 [error] Invalid override. The type of '_WindowsCodePageEncoder.startChunkedConve rsion' ('(Sink<List<int>>) → StringConversionSink') isn't a subtype of 'ChunkedC onverter<String, List<int>, String, List<int>>.startChunkedConversion' ('(dynami c) → dynamic'). (dart:io/string_transformer.dart, line 61, col 3)
48 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<List<int>>) → Stream<String>') isn't a subtype of 'ChunkedConverter<Li st<int>, String, List<int>, String>.bind' ('(dynamic) → dynamic'). (dart:io/stri ng_transformer.dart, line 100, col 31) 57 [error] Base class introduces an invalid override. The type of 'Converter.bind' ('(Stream<List<int>>) → Stream<String>') isn't a subtype of 'ChunkedConverter<Li st<int>, String, List<int>, String>.bind' ('(dynamic) → dynamic'). (dart:io/stri ng_transformer.dart, line 100, col 31)
49 [error] Invalid override. The type of '_WindowsCodePageDecoder.startChunkedConve rsion' ('(Sink<String>) → ByteConversionSink') isn't a subtype of 'ChunkedConver ter<List<int>, String, List<int>, String>.startChunkedConversion' ('(dynamic) → dynamic'). (dart:io/string_transformer.dart, line 112, col 3) 58 [error] Invalid override. The type of '_WindowsCodePageDecoder.startChunkedConve rsion' ('(Sink<String>) → ByteConversionSink') isn't a subtype of 'ChunkedConver ter<List<int>, String, List<int>, String>.startChunkedConversion' ('(dynamic) → dynamic'). (dart:io/string_transformer.dart, line 112, col 3)
50 [error] The getter 'packagesBase' isn't defined for the class 'IsolateNatives'. (dart:isolate, line 721, col 61) 59 [error] The getter 'packagesBase' isn't defined for the class 'IsolateNatives'. (dart:isolate, line 721, col 61)
51 [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) 60 [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)
61 [error] The argument type 'List' can't be assigned to the parameter type 'Iterab le<Null>'. (dart:js_util, line 112, col 29)
52 [error] The return type 'double' isn't a 'T', as defined by the method 'min'. (d art:math, line 90, col 16) 62 [error] The return type 'double' isn't a 'T', as defined by the method 'min'. (d art:math, line 90, col 16)
53 [error] The return type 'double' isn't a 'T', as defined by the method 'max'. (d art:math, line 125, col 16) 63 [error] The return type 'double' isn't a 'T', as defined by the method 'max'. (d art:math, line 125, col 16)
54 [warning] The final variable 'origin' must be initialized. (dart:html, line 177, col 3) 64 [warning] The final variable 'origin' must be initialized. (dart:html, line 177, col 3)
55 [warning] The final variable 'origin' must be initialized. (dart:html, line 813, col 3) 65 [warning] The final variable 'origin' must be initialized. (dart:html, line 813, col 3)
56 [warning] The final variables 'form', 'labels' and '3' more must be initialized. (dart:html, line 1691, col 3) 66 [warning] The final variables 'form', 'labels' and '3' more must be initialized. (dart:html, line 1691, col 3)
57 [warning] The final variable 'options' must be initialized. (dart:html, line 897 2, col 3) 67 [warning] The final variable 'options' must be initialized. (dart:html, line 897 2, col 3)
58 [warning] The final variables '_attributes', '_childElementCount' and '16' more must be initialized. (dart:html, line 13009, col 3) 68 [warning] The final variables '_attributes', '_childElementCount' and '16' more must be initialized. (dart:html, line 13009, col 3)
59 [warning] The final variables 'elements', 'form' and '4' more must be initialize d. (dart:html, line 16625, col 3) 69 [warning] The final variables 'elements', 'form' and '4' more must be initialize d. (dart:html, line 16625, col 3)
60 [warning] The final variable 'length' must be initialized. (dart:html, line 1755 5, col 3) 70 [warning] The final variable 'length' must be initialized. (dart:html, line 1755 5, col 3)
61 [warning] The final variables '_get_contentWindow' and 'sandbox' must be initial ized. (dart:html, line 20113, col 3) 71 [warning] The final variables '_get_contentWindow' and 'sandbox' must be initial ized. (dart:html, line 20113, col 3)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 [warning] The final variable 'sheet' must be initialized. (dart:svg, line 4634, col 3) 137 [warning] The final variable 'sheet' must be initialized. (dart:svg, line 4634, col 3)
128 [warning] The final variables 'ownerSvgElement' and 'viewportElement' must be in itialized. (dart:svg, line 5072, col 3) 138 [warning] The final variables 'ownerSvgElement' and 'viewportElement' must be in itialized. (dart:svg, line 5072, col 3)
129 [warning] The final variables 'currentTranslate', 'currentView' and '12' more mu st be initialized. (dart:svg, line 5386, col 3) 139 [warning] The final variables 'currentTranslate', 'currentView' and '12' more mu st be initialized. (dart:svg, line 5386, col 3)
130 [warning] The final variables 'preserveAspectRatio' and 'viewBox' must be initia lized. (dart:svg, line 5605, col 3) 140 [warning] The final variables 'preserveAspectRatio' and 'viewBox' must be initia lized. (dart:svg, line 5605, col 3)
131 [warning] The final variables 'lengthAdjust' and 'textLength' must be initialize d. (dart:svg, line 5677, col 3) 141 [warning] The final variables 'lengthAdjust' and 'textLength' must be initialize d. (dart:svg, line 5677, col 3)
132 [warning] The final variables 'href', 'method' and '2' more must be initialized. (dart:svg, line 5775, col 3) 142 [warning] The final variables 'href', 'method' and '2' more must be initialized. (dart:svg, line 5775, col 3)
133 [warning] The final variables 'dx', 'dy' and '3' more must be initialized. (dart :svg, line 5836, col 3) 143 [warning] The final variables 'dx', 'dy' and '3' more must be initialized. (dart :svg, line 5836, col 3)
134 [warning] The final variables 'height', 'href' and '3' more must be initialized. (dart:svg, line 6126, col 3) 144 [warning] The final variables 'height', 'href' and '3' more must be initialized. (dart:svg, line 6126, col 3)
135 [warning] The final variables 'preserveAspectRatio', 'viewBox' and '1' more must be initialized. (dart:svg, line 6171, col 3) 145 [warning] The final variables 'preserveAspectRatio', 'viewBox' and '1' more must be initialized. (dart:svg, line 6171, col 3)
136 [warning] The final variables 'gradientTransform', 'gradientUnits' and '2' more must be initialized. (dart:svg, line 6325, col 3) 146 [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