Skip to content

Conversation

amritpan
Copy link
Member

Type variables with only a literal kind attribute and no other attributes may print with incorrect spacing and [] styling, like so:

$T2 [allows bindings to: noescape] ] [with possible bindings: (subtypes of) String]
$T7 [allows bindings to: noescape] , [literal: interpolated string]] [with possible bindings: (subtypes of) Any]

Corrected, the attributes will print:

$T2 [allows bindings to: noescape] [with possible bindings: (subtypes of) String]
$T7 [allows bindings to: noescape] [attributes: [literal: interpolated string]] [with possible bindings: (subtypes of) Any]

This is an edit to #60205

@xedin xedin self-requested a review July 29, 2022 04:35
@xedin
Copy link
Contributor

xedin commented Jul 29, 2022

@swift-ci please smoke test

@xedin xedin merged commit 0a8b22f into swiftlang:main Jul 29, 2022
@amritpan amritpan deleted the fix-attr-printing branch July 29, 2022 16:16
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