| Index: src/typing.cc
|
| diff --git a/src/typing.cc b/src/typing.cc
|
| index 7762624b0739c542f4fc64da1ce46af1b388d8a8..35f597c09e302afe98e7ab436603d7f10fe168f7 100644
|
| --- a/src/typing.cc
|
| +++ b/src/typing.cc
|
| @@ -50,12 +50,13 @@ void AstTyper::Run(CompilationInfo* info) {
|
|
|
| #ifdef OBJECT_PRINT
|
| static void PrintObserved(Variable* var, Object* value, Type* type) {
|
| - PrintF(" observed %s ", var->IsParameter() ? "param" : "local");
|
| + OFStream os(stdout);
|
| + os << " observed " << (var->IsParameter() ? "param" : "local") << " ";
|
| var->name()->Print();
|
| - PrintF(" : ");
|
| + os << " : ";
|
| value->ShortPrint();
|
| - PrintF(" -> ");
|
| - type->TypePrint();
|
| + os << " -> ";
|
| + type->PrintTo(os) << endl;
|
| }
|
| #endif // OBJECT_PRINT
|
|
|
|
|