aboutsummaryrefslogtreecommitdiff
path: root/src/type/conversion.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-13 01:20:19 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-13 01:20:19 +0300
commit189d06730ae23770fbb970bf37eb0993edb8cd2d (patch)
tree73048265c57176ba27d2b823e09ebe4c1c7328c1 /src/type/conversion.rs
parentec13c45c8ae0f63fa715178308547cfadd8f8c39 (diff)
downloadmyslip-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.rs2
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) {