-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Change message of invalid_iboutlet
and invalid_ibinspectable
to reflect accurate usage
#59198
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
Change message of invalid_iboutlet
and invalid_ibinspectable
to reflect accurate usage
#59198
Conversation
@AnthonyLatsis This one is simple and should work the first time, could you ask it to test? :) |
@swift-ci please smoke test macOS |
Looks like those two error macros are pretty much identical, and we can get rid of the one that hardcodes |
I noticed this yesterday and wanted to replace the hardcoded one but thought maybe I shouldn’t overcomplicate the pr but it should be fine now that I think about it, I’ll do it once I’m near my computer again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you!
@AnthonyLatsis may be redundant but shouldn’t we run tests just one more time to make sure nothing got messed up? |
Sure. @swift-ci please smoke test macOS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement!
@swift-ci please smoke test |
@SerenaKit Before we merge, could you rebase this into 2 commits, one for the message edit and another one for the gardening? Would also be nice if the second commit message was a tad more specific. |
…iboutlet` error and instead use non-hardcoded `invalid_ibinspectable`
@AnthonyLatsis There, should be fine now (I think) |
@swift-ci please smoke test and merge |
The current error message for when
@GKInspectable
,@IBInspectable
, and@IBOutlet
isonly instance properties can be declared @GKInspectable / @IBInspectable / @IBOutlet
, however it doesn't reflect that it should be an instance property of a class, just that it should be an instance property, though those attributes are only allowed to be used for instance properties of a class type.This pull request changes the message so that it should reflect the attribute should be used on a class instance property.