-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: ability to allow type mismatch between ProvidedParameters #407
Conversation
/// <summary> | ||
/// If true, mismatched parameter types will be merged automatically | ||
/// </summary> | ||
public bool AllowTypeMismatch { get; set; } |
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.
ExpandTypeOnConflict
のほうが動作がわかりやすいかも?
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.
そうですね、変更しました!
if (oldP.ParameterType == newP.ParameterType || | ||
oldP.ParameterType != null && newP.ParameterType == null || | ||
oldP.ParameterType != null && newP.IsAnimatorOnly) |
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.
この辺の&&
と||
の混合が少しわかりづらいので()
で囲みましょう
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.
修正しましたmm
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.
ありがとうございます!
CHANGELOG が AllowTypeMismatch のままだった・・・ |
CHANGELOGを修正しました 👍 |
ありがとうございます! |
ProvidedParameter
をマージする際、ParameterType
が違ったら互いのParameterType
を見て自動的に解決するかどうかを指定できるようにします。こちらで使用する機能です。
bdunderscore/modular-avatar#1174 (comment)