mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user