From 5098d733af5daa569bfb57b2a9a3c521df9aeb06 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 2 Jun 2018 11:19:44 +0800 Subject: Misc - Clean up/triage some tests --- src/resolve/absolute.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index 46a27c2d..f5e0d9e5 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -1839,7 +1839,10 @@ void Resolve_Absolute_Pattern(Context& context, bool allow_refutable, ::AST::Pa ), (Value, if( ! allow_refutable ) + { + // TODO: If this is a single value of a unit-like struct, accept BUG(pat.span(), "Resolve_Absolute_Pattern - Encountered refutable pattern where only irrefutable allowed - " << pat); + } Resolve_Absolute_PatternValue(context, pat.span(), e.start); Resolve_Absolute_PatternValue(context, pat.span(), e.end); ), -- cgit v1.2.3