-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
generative constructor cannot declare a return type #305
Comments
This comment was originally written by [email protected] Added Accepted label. |
This comment was originally written by [email protected] Added Fixed label. |
This was referenced Oct 29, 2020
copybara-service bot
pushed a commit
that referenced
this issue
Nov 7, 2022
… webdev Revisions updated by `dart tools/rev_sdk_deps.dart`. crypto (https://github.com/dart-lang/crypto/compare/7cf89d3..e175a95): e175a95 2022-11-03 Devon Carew refactor tests to use a more compact encoding (#134) dartdoc (https://github.com/dart-lang/dartdoc/compare/179ada0..4b2e01b): 4b2e01b6 2022-11-03 Sam Rawlins Deprecate many elements on ModelElement (#3218) 60cc024a 2022-11-03 Sam Rawlins Make some logging APIs non-nullable (#3245) 01c55118 2022-11-03 István Soós Command-line arguments for limit max file count or total size. (#3231) file (https://github.com/google/file.dart/compare/b2e31cb..b768f79): b768f79 2022-11-07 Devon Carew add dependabot; run the CI weekly (#203) intl (https://github.com/dart-lang/intl/compare/dda8ade..442193c): 442193c 2022-11-07 Fernando Andrade Fix typo on readme (#506) shelf (https://github.com/dart-lang/shelf/compare/592656f..5fd2593): 5fd2593 2022-11-07 Kevin Moore latest mono_repo d1d8dc5 2022-11-07 Kevin Moore shelf: fix lints (#307) 64255e5 2022-11-03 Nate Bosch Prepare to publish shelf_web_socket (#305) test (https://github.com/dart-lang/test/compare/173a36f..f3fb3ab): f3fb3ab6 2022-11-05 stnamco add lack of description to configuration document (#1782) test_descriptor (https://github.com/dart-lang/test_descriptor/compare/66f14ce..13dbc20): 13dbc20 2022-11-07 Kevin Moore update lints (#45) webdev (https://github.com/dart-lang/webdev/compare/069b870..47c1c33): 47c1c33 2022-11-04 Anna Gringauze Added issue references and removed unused library (#1752) 542db40 2022-11-04 Anna Gringauze Update analysis options in dwds (#1777) 1a36ec8 2022-11-03 Elliott Brooks (she/her) Send debug info from injected client to the debug extension (#1772) Change-Id: I65dca831c71fa9487d663cc2a808b78b64424072 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/268360 Auto-Submit: Devon Carew <[email protected]> Commit-Queue: Devon Carew <[email protected]> Reviewed-by: Kevin Moore <[email protected]> Commit-Queue: Kevin Moore <[email protected]>
copybara-service bot
pushed a commit
that referenced
this issue
Oct 19, 2023
…bdev Revisions updated by `dart tools/rev_sdk_deps.dart`. ecosystem (https://github.com/dart-lang/ecosystem/compare/dcbd2ee..4acfcaf): 4acfcaf 2023-10-18 Devon Carew depend on package:lints 3.0.0 (#187) lints (https://github.com/dart-lang/lints/compare/90d350e..975c687): 975c687 2023-10-17 Devon Carew rev to 3.0.0; prep to publish (#160) mockito (https://github.com/dart-lang/mockito/compare/47a5588..4edf86f): 4edf86f 2023-10-18 Ilya Yanok Change `!= null` to `is T` to handle "double nullable" case tools (https://github.com/dart-lang/tools/compare/ddeccf6..15cc9c7): 15cc9c7 2023-10-17 Elias Yishak Add more info into the `AnalyticsException` (#181) vector_math (https://github.com/google/vector_math.dart/compare/d54af8a..294896d): 294896d 2023-10-18 Devon Carew add a changelog entry for the most recent change (#290) 2d6311e 2023-10-18 dependabot[bot] Bump dart-lang/setup-dart from 1.5.0 to 1.6.0 (#305) 2c16283 2023-10-18 Kevin Moore Allow latest pkg:build_web_compilers, bump min SDK to v3 (#299) cc8ca1c 2023-10-18 dependabot[bot] Bump actions/checkout from 3.6.0 to 4.1.0 (#303) watcher (https://github.com/dart-lang/watcher/compare/3998cdd..6ad58dc): 6ad58dc 2023-10-19 Parker Lougheed Migrate to dart_flutter_team_lints v2.1 (#153) webdev (https://github.com/dart-lang/webdev/compare/8d48d5e..1bd434b): 1bd434b6 2023-10-17 Elliott Brooks Prepare DWDS for release to version 22.0.0 (#2254) c9e96b73 2023-10-16 Elliott Brooks Run the Webdev tests daily with the Dart stable SDK (#2251) Change-Id: I324913bfbdeb9d0d6afc38f8719cac5f5ffe9955 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/331204 Auto-Submit: Devon Carew <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was originally filed by [email protected]
according to the language spec, generative constructors do not not allow return types. spec is not direct in why kind of error should be raised, but assuming it is a fatal error as the spec defines generative constructors "form" as:
"Generative Constructors
A generative constructor consists of a constructor name, a constructor parameter list, an initializer list and an optional body.
constructorSignature:
identifier formalParameterList
| namedConstructorSignature
;
namedConstructorSignature:
identifier '.' identifier formalParameterList
;
"
The text was updated successfully, but these errors were encountered: