From 2247d9b58e8618daef5cd6fd6cb4b044b70953e4 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Thu, 16 Dec 2021 02:43:16 -0800 Subject: [PATCH] Add failing test --- schala-lang/src/symbol_table/test.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schala-lang/src/symbol_table/test.rs b/schala-lang/src/symbol_table/test.rs index fca51e5..3634c9a 100644 --- a/schala-lang/src/symbol_table/test.rs +++ b/schala-lang/src/symbol_table/test.rs @@ -279,13 +279,15 @@ type Foo = { x: Int, y: Int } impl Foo { fn hella() { - self.x + 50 + let a = 50 + self.x + a } } "#; let (symbols, _) = add_symbols(source); symbols.debug(); assert!(symbols.fq_names.table.get(&make_fqsn(&["Foo", "hella"])).is_some()); + assert!(symbols.fq_names.table.get(&make_fqsn(&["Foo", "hella", "a"])).is_some()); } #[test]