Skip to content

Simplify typed error tests for V3 - #60

Merged
antono3 merged 1 commit into
masterfrom
test/v3-error-narrowing
Sep 23, 2026
Merged

antono3 merged 1 commit into
masterfrom
test/v3-error-narrowing

Conversation

@antono3

@antono3 antono3 commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Remove redundant if err is VulkanError checks immediately after assertions of the same type. The assertion already narrows err for the following statements, and V3's C generator currently emits an invalid _typ read from the concrete VulkanError for the repeated check.

This changes only tests and makes the full ergonomic suite runnable under current V3 with the two pending compiler fixes.

Verification

@antono3
antono3 force-pushed the test/v3-error-narrowing branch from 9699858 to 8d4d955 Compare September 23, 2026 18:35
@antono3
antono3 merged commit 470031d into master Sep 23, 2026
8 checks passed
@antono3
antono3 deleted the test/v3-error-narrowing branch September 23, 2026 18:39
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