From 8cbb82a1f6eb6605a4615d30922b777e7bf1e4d8 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sun, 22 Jun 2025 23:25:26 +0100 Subject: nihil.ucl: add map<> --- nihil.ucl/type.ccm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nihil.ucl/type.ccm') diff --git a/nihil.ucl/type.ccm b/nihil.ucl/type.ccm index 2aef1a6..5050e7a 100644 --- a/nihil.ucl/type.ccm +++ b/nihil.ucl/type.ccm @@ -76,12 +76,14 @@ export struct type_mismatch : error { {} // The type we expected. - auto expected_type(this type_mismatch const &self) -> object_type { + auto expected_type(this type_mismatch const &self) -> object_type + { return self._expected_type; } // The type we got. - auto actual_type(this type_mismatch const &self) -> object_type { + auto actual_type(this type_mismatch const &self) -> object_type + { return self._actual_type; } -- cgit v1.2.3