From a99a5f10a40e4dabba2f21baddfc7c9467da3723 Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 15 Oct 2018 19:37:02 -0700 Subject: [PATCH] Indicate index explicitly in SymbolTable debug --- schala-lang/src/symbol_table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schala-lang/src/symbol_table.rs b/schala-lang/src/symbol_table.rs index 0c3f7fc..e886fb3 100644 --- a/schala-lang/src/symbol_table.rs +++ b/schala-lang/src/symbol_table.rs @@ -50,7 +50,7 @@ impl fmt::Display for SymbolSpec { use self::SymbolSpec::*; match self { Func(type_names) => write!(f, "Func({:?})", type_names), - DataConstructor { index, type_name, type_args } => write!(f, "DataConstructor({})({:?} -> {})", index, type_args, type_name), + DataConstructor { index, type_name, type_args } => write!(f, "DataConstructor(idx: {})({:?} -> {})", index, type_args, type_name), } } }