From: Brendan Hansen Date: Fri, 7 Apr 2023 16:54:50 +0000 (-0500) Subject: bugfix: scoping issue with Pair.make X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=f7c50a04d585e5c0fdee44efcb1c8f420d2bcb30;p=onyx.git bugfix: scoping issue with Pair.make --- 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 +}