-
Notifications
You must be signed in to change notification settings - Fork 28
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
co19/LanguageFeatures/Augmentation-libraries/augmented_expression_A01_t09 #2661
Labels
bad-test
Report tests in need of updates. When closed, the tests should be considered good
Comments
Ah, actually there are other type issues in the augmentation. augment class C {
augment static String get staticGetter {
Expect.equals("A(C.staticGetter).call", augmented());
var f = () {
return augmented();
};
Expect.equals("A(C.staticGetter).call", f());
return A("Augmented");
} Note that we return unexpected analysis errors in augmented_expression_A01_t09_lib.dart:
- Line 37, column 12: COMPILE_TIME_ERROR.RETURN_OF_INVALID_TYPE
A value of type 'A' can't be returned from the function 'staticGetter' because it has a return type of 'String'.
- Line 45, column 12: COMPILE_TIME_ERROR.RETURN_OF_INVALID_TYPE
A value of type 'A' can't be returned from the function 'instanceGetter' because it has a return type of 'String'.
- Line 56, column 12: COMPILE_TIME_ERROR.RETURN_OF_INVALID_TYPE
A value of type 'A' can't be returned from the function 'staticGetter' because it has a return type of 'String'.
- Line 64, column 12: COMPILE_TIME_ERROR.RETURN_OF_INVALID_TYPE
A value of type 'A' can't be returned from the function 'instanceGetter' because it has a return type of 'String'.
- Line 77, column 12: COMPILE_TIME_ERROR.RETURN_OF_INVALID_TYPE
A value of type 'A' can't be returned from the function 'staticGetter' because it has a return type of 'String'.
- Line 85, column 12: COMPILE_TIME_ERROR.RETURN_OF_INVALID_TYPE
A value of type 'A' can't be returned from the function 'instanceGetter' because it has a return type of 'String'.
- Line 96, column 12: COMPILE_TIME_ERROR.RETURN_OF_INVALID_TYPE
A value of type 'A' can't be returned from the function 'staticGetter' because it has a return type of 'String'.
- Line 104, column 12: COMPILE_TIME_ERROR.RETURN_OF_INVALID_TYPE
A value of type 'A' can't be returned from the function 'instanceGetter' because it has a return type of 'String'. |
sgrekhov
added
the
bad-test
Report tests in need of updates. When closed, the tests should be considered good
label
May 14, 2024
sgrekhov
added a commit
to sgrekhov/co19
that referenced
this issue
May 14, 2024
copybara-service bot
pushed a commit
to dart-lang/sdk
that referenced
this issue
May 17, 2024
2024-05-16 sgrekhov22@gmail.com dart-lang/co19#2641. Rename `unchanged` -> `other_declarations` (dart-lang/co19#2670) 2024-05-16 sgrekhov22@gmail.com dart-lang/co19#2641. Check that it is still an error to declare more than one class member named `_` (dart-lang/co19#2669) 2024-05-15 sgrekhov22@gmail.com dart-lang/co19#2641. Add tests for multiple top-level declarations named `_` (dart-lang/co19#2667) 2024-05-15 sgrekhov22@gmail.com dart-lang/co19#2641. Add tests for unchanged type declarations named `_` (dart-lang/co19#2666) 2024-05-14 sgrekhov22@gmail.com dart-lang/co19#2641. Add tests for unchanged declarations named `_` (dart-lang/co19#2665) 2024-05-14 sgrekhov22@gmail.com dart-lang/co19#2641. Add tests for multiple declarations named `_` (dart-lang/co19#2656) 2024-05-14 sgrekhov22@gmail.com Fixes dart-lang/co19#2661. Fix numerous typos in augmented_expression_A01_t09 (dart-lang/co19#2664) 2024-05-14 sgrekhov22@gmail.com Fixes dart-lang/co19#2659. Make unique extension members names in augmenting_types_A05_t04 (dart-lang/co19#2662) 2024-05-14 sgrekhov22@gmail.com Fixes dart-lang/co19#2660. Fix typos in augmented_expression_A01_t05 (dart-lang/co19#2663) 2024-05-14 sgrekhov22@gmail.com dart-lang/co19#2641. Add wildcard initializer tests (dart-lang/co19#2658) 2024-05-13 sgrekhov22@gmail.com dart-lang/co19#2119. Remove some accidental comments (dart-lang/co19#2657) Change-Id: I665f56c1039b14354019a32b94183f6d9c9bc5c7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367020 Reviewed-by: Erik Ernst <eernst@google.com> Commit-Queue: Alexander Thomas <athom@google.com> Reviewed-by: Alexander Thomas <athom@google.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks that
A
is defined twice.Other errors in
augmented_expression_A01_t09_lib.dart
are because the analyzer does not do implicitcall()
invocation yet.The text was updated successfully, but these errors were encountered: