diff options
Diffstat (limited to 'nihil.ucl/type.ccm')
| -rw-r--r-- | nihil.ucl/type.ccm | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |
