mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 10:30:38 +00:00
Support for as operator and user-defined As impls. (#1476)
This commit is contained in:
1 parent
a96ae98155
commit
93e19649aa
20 files changed
+208
-12
No files matched your search
@@ -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 "&";
|
||||
|
||||
Reference in new issue
Block a user