Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more Functions tests #2138

Open
sgrekhov opened this issue Jul 17, 2023 · 1 comment
Open

Add more Functions tests #2138

sgrekhov opened this issue Jul 17, 2023 · 1 comment
Assignees
Labels
type-enhancement A request for a change that isn't a bug

Comments

@sgrekhov
Copy link
Contributor

sgrekhov commented Jul 17, 2023

Add more tests for 9. Functions

@sgrekhov sgrekhov added the type-enhancement A request for a change that isn't a bug label Jul 17, 2023
@sgrekhov sgrekhov self-assigned this Jul 17, 2023
@sgrekhov sgrekhov changed the title Add more Type of a Function tests Add more Functions tests Jul 18, 2023
sgrekhov added a commit to sgrekhov/co19 that referenced this issue Jul 18, 2023
copybara-service bot pushed a commit to dart-lang/sdk that referenced this issue Jul 21, 2023
2023-07-21 [email protected] Fixes dart-lang/co19#2141. Add covariant instance variable tests (dart-lang/co19#2144)
2023-07-18 [email protected] dart-lang/co19#2138. Fix assertions in some functions tests (dart-lang/co19#2140)
2023-07-17 [email protected] Fixes dart-lang/co19#2136. Add type variable conflict test (dart-lang/co19#2137)
2023-07-14 [email protected] Fixes dart-lang/co19#2127. Add tests for covariant-by-class parameters (dart-lang/co19#2133)

Change-Id: I0eb608e6bebaf9bcf1acced5e6db98e5ce622979
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/315400
Commit-Queue: Alexander Thomas <[email protected]>
Reviewed-by: Alexander Thomas <[email protected]>
@sgrekhov
Copy link
Contributor Author

There are no tests for the following statement

• of the form => e or the form async => e, which both return the value
of the expression e as if by a return e. The other modifiers do not apply
here, because they apply only to generators, discussed below. Generators are
not allowed to explicitly return anything, objects are added to the generated
stream or iterable using yield or yield*. Let T be the declared return type
of the function that has this body. It is a compile-time error if one of the
following conditions hold:
– The function is synchronous, T is not void, and it would have been a
compile-time error to declare the function with the body { return e;
} rather than => e

eernstg pushed a commit that referenced this issue Nov 1, 2024
Add more tests for functions with a short body. Note that Language/Functions/function_body_short_syntax_A02_t0{1,2,3,4}.dart have intentional syntax errors.
copybara-service bot pushed a commit to dart-lang/sdk that referenced this issue Nov 8, 2024
2024-11-06 [email protected] Fixes dart-lang/co19#2968. Fix expected result in syntax_relational_A01_t01.dart (dart-lang/co19#2969)
2024-11-06 [email protected] Fixes dart-lang/co19#2967. Update/ignore invalid_null_aware_operator warnings (dart-lang/co19#2970)
2024-11-05 [email protected] dart-lang/co19#2559. Add extension types to `augmented` expression tests. Part 7. (dart-lang/co19#2966)
2024-11-04 [email protected] dart-lang/co19#2559. Add extension types to `augmented` expression tests. Part 6. (dart-lang/co19#2965)
2024-11-04 [email protected] dart-lang/co19#2559. Add extension types to `augmented` expression tests. Part 5. (dart-lang/co19#2964)
2024-11-01 49699333+dependabot[bot]@users.noreply.github.com Bump the github-actions group with 2 updates (dart-lang/co19#2963)
2024-11-01 [email protected] dart-lang/co19#2559. Add extension types to `augmented` expression tests. Part 4. (dart-lang/co19#2962)
2024-11-01 [email protected] dart-lang/co19#2559. Add extension types to `augmented` expression tests. Part 3. (dart-lang/co19#2961)
2024-11-01 [email protected] dart-lang/co19#2138. Add more tests for functions with a short body (dart-lang/co19#2958)
2024-10-31 [email protected] dart-lang/co19#2559. Add extension types to `augmented` expression tests. Part 2. (dart-lang/co19#2960)
2024-10-31 [email protected] dart-lang/co19#2559. Add extension types to augmented expression tests. Part 1. (dart-lang/co19#2959)
2024-10-31 [email protected] dart-lang/co19#2559. Add `augmented` expression tests for control-flow elements (dart-lang/co19#2798)

Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try
Change-Id: I90581e0ac624f8b8562b227c864271da8cee25ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394260
Commit-Queue: Alexander Thomas <[email protected]>
Reviewed-by: Erik Ernst <[email protected]>
Reviewed-by: Alexander Thomas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

1 participant