-
Notifications
You must be signed in to change notification settings - Fork 32
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
Arrays support in type solver #316
Conversation
- Fixed jagged array rendering - Fixed safeContextWrite checking - Fixed array variance according to its element type
VSharp.SILI.Core/TypeSolverUtils.fs
Outdated
@@ -770,7 +802,7 @@ and genericCandidate private ( | |||
if success then Some constraints | |||
else None | |||
else | |||
success <- List.isEmpty sbtInterfaces | |||
success <- success && List.isEmpty sbtInterfaces |
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.
Добавь проверку на success
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 success then
, то есть success &&
ничего не сделает
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.
Это больше оптимизация эффективности, ничего семантически не изменится
VSharp.SILI.Core/TypeSolverUtils.fs
Outdated
publicBuiltIn : seq<candidate> | ||
publicUser : seq<candidate> | ||
privateUser : seq<candidate> | ||
rest : seq<candidate> | ||
publicBuiltIn : candidate list | ||
publicUser : candidate list | ||
privateUser : candidate list | ||
rest : candidate list |
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.
Оставим ленивость
VSharp.SILI.Core/TypeSolverUtils.fs
Outdated
@@ -758,7 +790,7 @@ and genericCandidate private ( | |||
success <- propagateEqual constraints typedef equalType | |||
|
|||
if typedef.IsInterface then |
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.
Вот тут можно добавить проверку, иначе будем бегать по циклам впустую
VSharp.SILI.Core/TypeSolverUtils.fs
Outdated
@@ -770,7 +802,7 @@ and genericCandidate private ( | |||
if success then Some constraints | |||
else None | |||
else | |||
success <- List.isEmpty sbtInterfaces | |||
success <- success && List.isEmpty sbtInterfaces |
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.
Это больше оптимизация эффективности, ничего семантически не изменится
No description provided.