From f7c50a04d585e5c0fdee44efcb1c8f420d2bcb30 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Fri, 7 Apr 2023 11:54:50 -0500 Subject: [PATCH] bugfix: scoping issue with Pair.make --- core/container/pair.onyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/container/pair.onyx b/core/container/pair.onyx index 13f56c96..dce8bc89 100644 --- a/core/container/pair.onyx +++ b/core/container/pair.onyx @@ -17,7 +17,7 @@ Pair :: struct (First_Type: type_expr, Second_Type: type_expr) { } #inject Pair { - make :: macro (x: $X, y: $Y) => Pair(X, Y).{x, y}; + make :: macro (x: $X, y: $Y) => #this_package.Pair(X, Y).{x, y}; _format :: (output: &conv.Format_Output, format: &conv.Format, p: &Pair($First_Type, $Second_Type)) { conv.format(output, "({}, {})", p.first, p.second); @@ -43,4 +43,4 @@ hash.hash :: (p: Pair($First_Type/hash.Hashable, $Second_Type/hash.Hashable)) => #local Equatable :: interface (t: $T) { { t == t } -> bool; -} \ No newline at end of file +} -- 2.25.1