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

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

Issue 2667343005: Infer Null for return type of functions with empty returns. (Closed)
Patch Set: Address comments, fix 28630, ddc expectations Created 3 years, 10 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'; '_ControllerEventSinkWrapper<dynamic> ' must be of type 'EventSink<T>'. (dart:async/stream.dart, line 1346, col 16)
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 [error] The argument type '_ControllerEventSinkWrapper' can't be assigned to the parameter type 'EventSink<T>'. (dart:async/stream.dart, line 1346, col 53)
3 [error] Type parameter bound types must be instantiated. (dart:collection/queue. dart, line 99, col 29) 3 [error] Type parameter bound types must be instantiated. (dart:collection/queue. dart, line 99, col 29)
4 [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 'Converter<S, T>.bind' ('(Stream<S>) → Stream<T>'). (da rt:convert/chunked_conversion.dart, line 14, col 3)
5 [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.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)
6 [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] 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)
7 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/bool.dart, line 41, col 9) 7 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/bool.dart, line 41, col 9)
8 [error] Const constructors can't throw exceptions. (dart:core/bool.dart, line 42 , col 5) 8 [error] Const constructors can't throw exceptions. (dart:core/bool.dart, line 42 , col 5)
9 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/int.dart, line 33, col 9) 9 [error] Only redirecting factory constructors can be declared to be 'const'. (da rt:core/int.dart, line 33, col 9)
10 [error] Const constructors can't throw exceptions. (dart:core/int.dart, line 34, col 5) 10 [error] Const constructors can't throw exceptions. (dart:core/int.dart, line 34, col 5)
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 [warning] The final variables '_rows' and '_tBodies' must be initialized. (dart: html, line 31773, col 3) 68 [warning] The final variables '_rows' and '_tBodies' must be initialized. (dart: html, line 31773, col 3)
69 [warning] The final variables '_cells', 'rowIndex' and '1' more must be initiali zed. (dart:html, line 31883, col 3) 69 [warning] The final variables '_cells', 'rowIndex' and '1' more must be initiali zed. (dart:html, line 31883, col 3)
70 [warning] The final variable '_rows' must be initialized. (dart:html, line 31950 , col 3) 70 [warning] The final variable '_rows' must be initialized. (dart:html, line 31950 , col 3)
71 [warning] The final variable 'content' must be initialized. (dart:html, line 319 93, col 3) 71 [warning] The final variable 'content' must be initialized. (dart:html, line 319 93, col 3)
72 [warning] The final variables 'form', 'labels' and '5' more must be initialized. (dart:html, line 32069, col 3) 72 [warning] The final variables 'form', 'labels' and '5' more must be initialized. (dart:html, line 32069, col 3)
73 [warning] The final variables 'readyState' and 'track' must be initialized. (dar t:html, line 33056, col 3) 73 [warning] The final variables 'readyState' and 'track' must be initialized. (dar t:html, line 33056, col 3)
74 [warning] The final variables 'decodedFrameCount', 'droppedFrameCount' and '2' m ore must be initialized. (dart:html, line 33754, col 3) 74 [warning] The final variables 'decodedFrameCount', 'droppedFrameCount' and '2' m ore must be initialized. (dart:html, line 33754, col 3)
75 [warning] Unsafe implicit cast from '(T) → void' to '(Event) → dynamic'. This us ually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:html, line 40126, col 45) 75 [warning] Unsafe implicit cast from '(T) → void' to '(Event) → dynamic'. This us ually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:html, line 40126, col 45)
76 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/data_transformer.dart, line 492 , col 23) 76 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/data_transformer.dart, line 492 , col 23)
77 [warning] Unsafe implicit cast from 'Stream<dynamic>' to 'Stream<FileSystemEntit y>'. This usually indicates that type information was lost and resulted in 'dyna mic' and/or a place that will have a failure at runtime. (dart:io/directory_impl .dart, line 239, col 12) 77 [warning] Unsafe implicit cast from 'Stream<dynamic>' to 'Stream<FileSystemEntit y>'. This usually indicates that type information was lost and resulted in 'dyna mic' and/or a place that will have a failure at runtime. (dart:io/directory_impl .dart, line 239, col 12)
78 [warning] Missing return value after 'return'. (dart:io/directory_impl.dart, lin e 394, col 15)
79 [warning] Missing return value after 'return'. (dart:io/file_impl.dart, line 101 , col 11)
80 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<List<int>>'. Th is usually indicates that type information was lost and resulted in 'dynamic' an d/or a place that will have a failure at runtime. (dart:io/file_impl.dart, line 484, col 14) 78 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<List<int>>'. Th is usually indicates that type information was lost and resulted in 'dynamic' an d/or a place that will have a failure at runtime. (dart:io/file_impl.dart, line 484, col 14)
81 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/file_impl.dart, line 831, col 3 3) 79 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/file_impl.dart, line 831, col 3 3)
82 [warning] Unsafe implicit cast from 'StreamSubscription<dynamic>' to 'StreamSubs cription<List<int>>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart: io/http_impl.dart, line 269, col 14) 80 [warning] Unsafe implicit cast from 'StreamSubscription<dynamic>' to 'StreamSubs cription<List<int>>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart: io/http_impl.dart, line 269, col 14)
83 [warning] Unsafe implicit cast from 'Stream<dynamic>' to 'Stream<List<int>>'. Th is usually indicates that type information was lost and resulted in 'dynamic' an d/or a place that will have a failure at runtime. (dart:io/http_impl.dart, line 1056, col 29) 81 [warning] Unsafe implicit cast from 'Stream<dynamic>' to 'Stream<List<int>>'. Th is usually indicates that type information was lost and resulted in 'dynamic' an d/or a place that will have a failure at runtime. (dart:io/http_impl.dart, line 1056, col 29)
84 [warning] Unsafe implicit cast from 'Function' to '(List<int>) → void'. This usu ally indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:io/http_impl.dart, line 1173, col 54) 82 [warning] Unsafe implicit cast from 'Function' to '(List<int>) → void'. This usu ally indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:io/http_impl.dart, line 1173, col 54)
85 [warning] Unsafe implicit cast from 'Function' to '(List<int>) → void'. This usu ally indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:io/http_impl.dart, line 1175, col 33) 83 [warning] Unsafe implicit cast from 'Function' to '(List<int>) → void'. This usu ally indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:io/http_impl.dart, line 1175, col 33)
86 [warning] Missing return value after 'return'. (dart:io/http_impl.dart, line 140 1, col 21)
87 [warning] Missing return value after 'return'. (dart:io/http_impl.dart, line 140 3, col 31)
88 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<_ConnectionInfo >'. This usually indicates that type information was lost and resulted in 'dynam ic' and/or a place that will have a failure at runtime. (dart:io/http_impl.dart, line 1635, col 14) 84 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<_ConnectionInfo >'. This usually indicates that type information was lost and resulted in 'dynam ic' and/or a place that will have a failure at runtime. (dart:io/http_impl.dart, line 1635, col 14)
89 [warning] Missing return value after 'return'. (dart:io/http_impl.dart, line 211 1, col 42)
90 [warning] Unsafe implicit cast from 'StreamSubscription<dynamic>' to 'StreamSubs cription<List<int>>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart: io/http_parser.dart, line 201, col 16) 85 [warning] Unsafe implicit cast from 'StreamSubscription<dynamic>' to 'StreamSubs cription<List<int>>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart: io/http_parser.dart, line 201, col 16)
91 [warning] Unsafe implicit cast from 'StreamSubscription<dynamic>' to 'StreamSubs cription<List<int>>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart: io/http_parser.dart, line 203, col 50) 86 [warning] Unsafe implicit cast from 'StreamSubscription<dynamic>' to 'StreamSubs cription<List<int>>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart: io/http_parser.dart, line 203, col 50)
92 [warning] Unsafe implicit cast from 'Map<dynamic, dynamic>' to 'Map<String, Stri ng>'. This usually indicates that type information was lost and resulted in 'dyn amic' and/or a place that will have a failure at runtime. (dart:io/platform_impl .dart, line 100, col 69) 87 [warning] Unsafe implicit cast from 'Map<dynamic, dynamic>' to 'Map<String, Stri ng>'. This usually indicates that type information was lost and resulted in 'dyn amic' and/or a place that will have a failure at runtime. (dart:io/platform_impl .dart, line 100, col 69)
93 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<SecureSocket>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:io/secure_socket.dart , line 92, col 12) 88 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<SecureSocket>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:io/secure_socket.dart , line 92, col 12)
94 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<SecureSocket>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:io/secure_socket.dart , line 138, col 12) 89 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<SecureSocket>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:io/secure_socket.dart , line 138, col 12)
95 [warning] Unsafe implicit cast from 'StreamSubscription<dynamic>' to 'StreamSubs cription<RawSocketEvent>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. ( dart:io/secure_socket.dart, line 446, col 33) 90 [warning] Unsafe implicit cast from 'StreamSubscription<dynamic>' to 'StreamSubs cription<RawSocketEvent>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. ( dart:io/secure_socket.dart, line 446, col 33)
96 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<RawSecureSocket >'. This usually indicates that type information was lost and resulted in 'dynam ic' and/or a place that will have a failure at runtime. (dart:io/secure_socket.d art, line 580, col 12) 91 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<RawSecureSocket >'. This usually indicates that type information was lost and resulted in 'dynam ic' and/or a place that will have a failure at runtime. (dart:io/secure_socket.d art, line 580, col 12)
97 [warning] Missing return value after 'return'. (dart:io/secure_socket.dart, line 861, col 11)
98 [warning] Missing return value after 'return'. (dart:io/secure_socket.dart, line 868, col 13)
99 [warning] Missing return value after 'return'. (dart:io/secure_socket.dart, line 882, col 11)
100 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/secure_socket.dart, line 1176, col 32) 92 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/secure_socket.dart, line 1176, col 32)
101 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/stdio.dart, line 109, col 28) 93 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/stdio.dart, line 109, col 28)
102 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<WebSocket>'. Th is usually indicates that type information was lost and resulted in 'dynamic' an d/or a place that will have a failure at runtime. (dart:io/websocket_impl.dart, line 471, col 14) 94 [warning] Unsafe implicit cast from 'Future<dynamic>' to 'Future<WebSocket>'. Th is usually indicates that type information was lost and resulted in 'dynamic' an d/or a place that will have a failure at runtime. (dart:io/websocket_impl.dart, line 471, col 14)
103 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/websocket_impl.dart, line 577, col 21) 95 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/websocket_impl.dart, line 577, col 21)
104 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/websocket_impl.dart, line 590, col 35) 96 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/websocket_impl.dart, line 590, col 35)
105 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/websocket_impl.dart, line 626, col 12) 97 [warning] Unsafe implicit cast from 'List<dynamic>' to 'List<int>'. This usually indicates that type information was lost and resulted in 'dynamic' and/or a pla ce that will have a failure at runtime. (dart:io/websocket_impl.dart, line 626, col 12)
106 [warning] Unsafe implicit cast from 'num' to 'T'. This usually indicates that ty pe information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:math/rectangle.dart, line 158, col 22) 98 [warning] Unsafe implicit cast from 'num' to 'T'. This usually indicates that ty pe information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:math/rectangle.dart, line 158, col 22)
107 [warning] Unsafe implicit cast from 'num' to 'T'. This usually indicates that ty pe information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:math/rectangle.dart, line 159, col 23) 99 [warning] Unsafe implicit cast from 'num' to 'T'. This usually indicates that ty pe information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:math/rectangle.dart, line 159, col 23)
108 [warning] Unsafe implicit cast from 'num' to 'T'. This usually indicates that ty pe information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:math/rectangle.dart, line 282, col 10) 100 [warning] Unsafe implicit cast from 'num' to 'T'. This usually indicates that ty pe information was lost and resulted in 'dynamic' and/or a place that will have a failure at runtime. (dart:math/rectangle.dart, line 282, col 10)
109 [warning] The final variables 'href' and 'target' must be initialized. (dart:svg , line 60, col 3) 101 [warning] The final variables 'href' and 'target' must be initialized. (dart:svg , line 60, col 3)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 [warning] The final variable 'sheet' must be initialized. (dart:svg, line 4634, col 3) 142 [warning] The final variable 'sheet' must be initialized. (dart:svg, line 4634, col 3)
151 [warning] The final variables 'ownerSvgElement' and 'viewportElement' must be in itialized. (dart:svg, line 5072, col 3) 143 [warning] The final variables 'ownerSvgElement' and 'viewportElement' must be in itialized. (dart:svg, line 5072, col 3)
152 [warning] The final variables 'currentTranslate', 'currentView' and '12' more mu st be initialized. (dart:svg, line 5386, col 3) 144 [warning] The final variables 'currentTranslate', 'currentView' and '12' more mu st be initialized. (dart:svg, line 5386, col 3)
153 [warning] The final variables 'preserveAspectRatio' and 'viewBox' must be initia lized. (dart:svg, line 5605, col 3) 145 [warning] The final variables 'preserveAspectRatio' and 'viewBox' must be initia lized. (dart:svg, line 5605, col 3)
154 [warning] The final variables 'lengthAdjust' and 'textLength' must be initialize d. (dart:svg, line 5677, col 3) 146 [warning] The final variables 'lengthAdjust' and 'textLength' must be initialize d. (dart:svg, line 5677, col 3)
155 [warning] The final variables 'href', 'method' and '2' more must be initialized. (dart:svg, line 5775, col 3) 147 [warning] The final variables 'href', 'method' and '2' more must be initialized. (dart:svg, line 5775, col 3)
156 [warning] The final variables 'dx', 'dy' and '3' more must be initialized. (dart :svg, line 5836, col 3) 148 [warning] The final variables 'dx', 'dy' and '3' more must be initialized. (dart :svg, line 5836, col 3)
157 [warning] The final variables 'height', 'href' and '3' more must be initialized. (dart:svg, line 6126, col 3) 149 [warning] The final variables 'height', 'href' and '3' more must be initialized. (dart:svg, line 6126, col 3)
158 [warning] The final variables 'preserveAspectRatio', 'viewBox' and '1' more must be initialized. (dart:svg, line 6171, col 3) 150 [warning] The final variables 'preserveAspectRatio', 'viewBox' and '1' more must be initialized. (dart:svg, line 6171, col 3)
159 [warning] The final variables 'gradientTransform', 'gradientUnits' and '2' more must be initialized. (dart:svg, line 6325, col 3) 151 [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