Skip to content

Conversation

@CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jan 28, 2020

Resolves SR-12072 and rdar://58941114

@CodaFi CodaFi requested a review from theblixguy January 28, 2020 01:22
@CodaFi
Copy link
Contributor Author

CodaFi commented Jan 28, 2020

@swift-ci test

@CodaFi
Copy link
Contributor Author

CodaFi commented Jan 28, 2020

@swift-ci please smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Jan 28, 2020

⛵️

@CodaFi CodaFi merged commit c81cecf into swiftlang:master Jan 28, 2020
@CodaFi CodaFi deleted the constraint-kinds branch January 28, 2020 20:53

class C {}
protocol Foo {
associatedtype X where C: X
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better if we had a test for this in tests/ to check the diagnostic message makes sense

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I see it makes sense: qq.swift:3:28: error: type 'C' constrained to non-protocol, non-class type 'Self.X' but it would be good to ensure it doesn't regress and surface error types or something)

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.

3 participants