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

<type-error>: fix test and remove condition-to-string method #1614

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

cgay
Copy link
Member

@cgay cgay commented Jun 12, 2024

<type-error>: fix test and remove condition-to-string method

  • Remove condition-to-string(<type-error>) because
    condition-to-string(<simple-condition>) already does the same job.

  • Add make-condition(<type-error>) to supply the required init args for the
    test.

  • Make both value: and type: be required init keywords. Potentially
    controversial since they're not specified as required in the DRM, but the
    error is meaningless without these slots set and this would have uncovered the
    test suite bug right away.

* Remove `condition-to-string(<type-error>)` because
  `condition-to-string(<simple-condition>)` already does the same job.

* Add `make-condition(<type-error>)` to supply the required init args for the
  test.

* Make both value: and type: be required init keywords. Potentially
  controversial since they're not specified as required in the DRM, but the
  error is meaningless without these slots set and this would have uncovered the
  test suite bug right away.
@cgay cgay changed the title Make <type-error> conform better to the DRM <type-error>: fix test and remove condition-to-string method Jun 12, 2024
@cgay cgay merged commit 7cb1d65 into dylan-lang:master Jun 12, 2024
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants