Skip to content

Commit b26fa50

Browse files
author
Sergey G. Grekhov
committed
Additional fix for #110 in a strong mode
1 parent 0a92618 commit b26fa50

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

Language/Functions/async_return_type_t02.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* return type of asynchronous function may not be assigned to Future but is
1212
* void.
1313
*
14+
* @compile-error
1415
1516
*/
1617

Language/Functions/generator_return_type_t02.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
* the declared return type of a function marked async* may not be assigned
1010
* to Stream.
1111
*
12-
* @description Check that it is no compile error, if the declared
12+
* @description Check that it is a compile error, if the declared
1313
* return type of synchronous generator function may not be assigned
1414
* to Iterable but is void.
1515
*
16+
* @compile-error
1617
1718
*/
1819

Language/Functions/generator_return_type_t06.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
* the declared return type of a function marked async* may not be assigned
1010
* to Stream.
1111
*
12-
* @description Check that it is no compile error, if the declared
12+
* @description Check that it is a compile error, if the declared
1313
* return type of a function marked async* may not be assigned to Stream but is
1414
* void.
1515
*
16+
* @compile-error
1617
1718
*/
1819

Language/Types/Type_Void/returning_t03.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* checked mode, a dynamic type error would arise if a non-null object was
1111
* returned from a void method (since no object has runtime type dynamic).
1212
* @description Checks that returning a non-null value with non-dynamic static
13-
* type from within a void method produces no error.
13+
* type from within a void method produces compile error.
14+
* @compile-error
1415
* @author rodionov
1516
*/
1617

Language/Types/Type_Void/returning_t04.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* checked mode, a dynamic type error would arise if a non-null object was
1111
* returned from a void method (since no object has runtime type dynamic).
1212
* @description Checks that returning a non-null value with non-dynamic static
13-
* type from within a void method produces no error.
13+
* type from within a void method produces compile error.
14+
* @compile-error
1415
* @author rodionov
1516
*/
1617

Language/Types/Type_Void/returning_t05.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
* checked mode, a dynamic type error would arise if a non-null object was
1111
* returned from a void method (since no object has runtime type dynamic).
1212
* @description Checks that returning a non-null value with non-dynamic static
13-
* type from within a void method produces no error.
13+
* type from within a void method produces compile error.
14+
* @compile-error
1415
* @author rodionov
1516
*/
1617

0 commit comments

Comments
 (0)