Initial support for constraints formed by combining interfaces (#1307)

Add scaffolding for constraints in general, and support specifically constraints formed by applying a `&` operator.

No support for constraints formed with `where` nor for named constraints at this point.
This commit is contained in:
Richard Smith
2022-06-07 13:59:23 -07:00
committed by GitHub
parent 058b5e77c0
commit 1bb370420b
19 changed files with 822 additions and 201 deletions
+1
View File
@@ -55,6 +55,7 @@ auto ToString(Operator op) -> std::string_view {
case Operator::Add:
return "+";
case Operator::AddressOf:
case Operator::Combine:
return "&";
case Operator::Neg:
case Operator::Sub: