mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 22:02:41 +01:00
The presence or absence of whitespace is used to determine which operator is in use, following the rules described in #520. Support for prefix * dereference operator follows #523. Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
committed by
GitHub
co-authored by
Geoff Romer
parent
d6b47ba10f
commit
89e21113c3
@@ -357,9 +357,8 @@ auto PrintValue(const Value* val, std::ostream& out) -> void {
|
||||
out << "Continuation";
|
||||
break;
|
||||
case ValKind::PointerTV:
|
||||
out << "Ptr(";
|
||||
PrintValue(val->GetPointerType().type, out);
|
||||
out << ")";
|
||||
out << "*";
|
||||
break;
|
||||
case ValKind::FunctionTV:
|
||||
out << "fn ";
|
||||
|
||||
Reference in New Issue
Block a user