We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 232f20f commit 8fb05afCopy full SHA for 8fb05af
lib/Sema/CSGen.cpp
@@ -2287,11 +2287,13 @@ namespace {
2287
return subPatternType;
2288
}
2289
2290
+ case PatternKind::Bool:
2291
+ return CS.getASTContext().getBoolDecl()->getDeclaredType();
2292
+
2293
// Refutable patterns occur when checking the PatternBindingDecls in an
2294
// if/let or while/let condition. They always require an initial value,
2295
// so they always allow unspecified types.
2296
case PatternKind::EnumElement:
- case PatternKind::Bool:
2297
case PatternKind::Expr:
2298
// TODO: we could try harder here, e.g. for enum elements to provide the
2299
// enum type.
0 commit comments