From 352eada94af68891cc865e0a5214b174fe69eb86 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 16 Jul 2023 19:49:13 +0200 Subject: [PATCH] Parser (unit tests) - Because this causes `expect(string)` to be called (this unit test) we must catch `TError` as that is what `expect(string)` throws - We should update this (see https://deavmi.assigned.network/git/tlang/tlang/issues/147) --- source/tlang/compiler/parsing/core.d | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/tlang/compiler/parsing/core.d b/source/tlang/compiler/parsing/core.d index eff588de..2824227c 100644 --- a/source/tlang/compiler/parsing/core.d +++ b/source/tlang/compiler/parsing/core.d @@ -3130,13 +3130,9 @@ int wrongFunction() assert(false); } - catch(ParserException e) - { - // TODO: Try make errors specific enough to yank them out - assert(true); - } + // TODO: Make more specific (see https://deavmi.assigned.network/git/tlang/tlang/issues/147) catch(TError) { - assert(false); + assert(true); } } \ No newline at end of file