Support for as operator and user-defined As impls. (#1476)

This commit is contained in:
Richard Smith
2022-07-21 13:16:18 -07:00
committed by GitHub
parent a96ae98155
commit 93e19649aa
20 changed files with 208 additions and 12 deletions
+2
View File
@@ -61,6 +61,8 @@ auto ToString(Operator op) -> std::string_view {
switch (op) {
case Operator::Add:
return "+";
case Operator::As:
return "as";
case Operator::AddressOf:
case Operator::Combine:
return "&";