[SR-910] Type Int1 does not conform to protocol BooleanType #43522
Xcode Version 7.3 beta (7D162j) - default toolchain
Additional Detail from JIRA
[NOTE - See comment below. The .whiteColor and .blackColor methods were not actually being called as they should have been. The error message is still very bad though so I'm not resolving the issue.]
Compile error "Type 'Int1' does not conform to protocol 'BooleanType'" is occurring when I don't think it should. First encountered in application code but the below example has the same error in the Playground.
This isn't quite the minimal sample where this is happening but it is getting close. The error does disappear at some point in simplification even when I don't think that the types should fundamentally change.
The text was updated successfully, but these errors were encountered:
Comment by Paris Xavier Pinkney (JIRA)
I've just uploaded a sample playground that reproduces this bug
In the playground, I have two nested functions,
mkchoi212 (JIRA User) Here is the example in question:
Currently on master is produces following diagnostic - "reference to member 'LessThan' cannot be resolved without a contextual type" but it actually should say that there is no such member