Skip to content

Conversation

@cuiweixie
Copy link

This commit adds missing full stops (periods) to error and warning messages in the Solidity compiler to improve consistency and readability.

Changes include:

  • Added full stop to error message in ContractLevelChecker.cpp for library state variable validation
  • Added full stops to error messages in NameAndTypeResolver.cpp for base contract definition and inheritance linearization errors
  • Added full stop to warning message in TypeChecker.cpp for interface function virtual keyword
  • Added full stop to error message in DocStringParser.cpp for missing parameter name in docstring
  • Updated corresponding test expectations to match the new error message format

All affected error codes:

  • 9957: Library cannot have non-constant state variables
  • 2449: Definition of base has to precede definition of derived contract
  • 5005: Linearization of inheritance graph impossible
  • 5815: Interface functions are implicitly "virtual"
  • 3335: No param name given

@github-actions
Copy link

Thank you for your contribution to the Solidity compiler! A team member will follow up shortly.

If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother.

If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix.

@cuiweixie cuiweixie force-pushed the typo branch 3 times, most recently from 252c719 to 0c34478 Compare January 16, 2026 11:02
This commit adds missing full stops (periods) to error and warning messages
in the Solidity compiler to improve consistency and readability.

Changes include:
- Added full stop to error message in ContractLevelChecker.cpp for library
  state variable validation
- Added full stops to error messages in NameAndTypeResolver.cpp for base
  contract definition and inheritance linearization errors
- Added full stop to warning message in TypeChecker.cpp for interface
  function virtual keyword
- Added full stop to error message in DocStringParser.cpp for missing
  parameter name in docstring
- Updated corresponding test expectations to match the new error message
  format

All affected error codes:
- 9957: Library cannot have non-constant state variables
- 2449: Definition of base has to precede definition of derived contract
- 5005: Linearization of inheritance graph impossible
- 5815: Interface functions are implicitly "virtual"
- 3335: No param name given
@cameel
Copy link
Collaborator

cameel commented Jan 16, 2026

Hello, and thank you for your contribution! Unfortunately, we do not accept PRs with trivial tweaks of this kind. You can report them in #16095 and we'll instead fix them in bulk at some point.

@cameel cameel closed this Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants