diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-13 01:20:19 +0300 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-13 01:20:19 +0300 |
commit | 189d06730ae23770fbb970bf37eb0993edb8cd2d (patch) | |
tree | 73048265c57176ba27d2b823e09ebe4c1c7328c1 /src/type/conversion.rs | |
parent | ec13c45c8ae0f63fa715178308547cfadd8f8c39 (diff) | |
download | myslip-189d06730ae23770fbb970bf37eb0993edb8cd2d.tar.gz myslip-189d06730ae23770fbb970bf37eb0993edb8cd2d.zip |
feat: generic match arms, mostly for functions I guess?
Diffstat (limited to 'src/type/conversion.rs')
-rw-r--r-- | src/type/conversion.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type/conversion.rs b/src/type/conversion.rs index 0a96790..5d29ba0 100644 --- a/src/type/conversion.rs +++ b/src/type/conversion.rs @@ -30,7 +30,7 @@ impl Type { self.least_general_supertype(known_as) == *known_as } - fn least_general_supertype(&self, other: &Type) -> Type { + pub fn least_general_supertype(&self, other: &Type) -> Type { match (self, other) { |