summaryrefslogtreecommitdiff
path: root/src/mir/from_hir_match.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir/from_hir_match.cpp')
-rw-r--r--src/mir/from_hir_match.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mir/from_hir_match.cpp b/src/mir/from_hir_match.cpp
index 66625753..083dc0ce 100644
--- a/src/mir/from_hir_match.cpp
+++ b/src/mir/from_hir_match.cpp
@@ -1294,6 +1294,7 @@ void PatternRulesetBuilder::append_from(const Span& sp, const ::HIR::Pattern& pa
this->append_from( sp, *pe.sub, *e.inner );
),
(Value,
+ // TODO: Check type? Also handle named values and byte strings.
if( pe.val.is_String() ) {
const auto& s = pe.val.as_String();
this->push_rule( PatternRule::make_Value(s) );