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

generative constructor cannot declare a return type #305

Closed
DartBot opened this issue Nov 1, 2011 · 2 comments
Closed

generative constructor cannot declare a return type #305

DartBot opened this issue Nov 1, 2011 · 2 comments

Comments

@DartBot
Copy link

DartBot commented Nov 1, 2011

This issue was originally filed by fab...@google.com


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
    ;
"

@DartBot
Copy link
Author

DartBot commented Nov 1, 2011

This comment was originally written by fab...@google.com


Added Accepted label.

@DartBot
Copy link
Author

DartBot commented Nov 1, 2011

This comment was originally written by fab...@google.com


Added Fixed label.

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 <devoncarew@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
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 <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant