Commit 983efcd
authored
Fully-qualify reference to 'Comment' type in #expect expansion when comment argument isn't a string literal (#1645)
This fixes a build error which can arise in the code emitted by
`#expect` when the `comment` argument is not a string literal and the
module the `#expect` appears in has a custom type visible named
`Comment`, conflicting with the testing library's built-in type by that
name.
Fixes #1641
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.1 parent 62d7c94 commit 983efcd
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
640 | 650 | | |
0 commit comments