Open stephencelis opened 1 year ago
Assertion failed: (path.size() == 1 && path[0].getKind() == ConstraintLocator::SubscriptMember) || (path.size() == 2 && path[1].getKind() == ConstraintLocator::KeyPathDynamicMember), file swift\lib\Sema\CSSimplify.cpp, line 15236
CC: @slavapestov @hborla
@xedin has been working in this area recently
Description
I was setting up Windows CI for a project and encountered a crash in the constraint solver that seems to be around key paths and dynamic member lookup:
https://github.com/pointfreeco/swift-case-paths/actions/runs/6632315615/job/18017730580
Steps to reproduce
Check out swift-case-paths@
f3c4825e3baad3003b29778cdc036eacc5f6ddd6
.Build the test targets with a toolchain with assertions enabled.
Expected behavior
I expect no assertion.
Environment