aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-31 11:37:03 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-31 11:37:03 +0000
commit84ba9ce1f41dbd5ed3135ac8d808ee0c8c5b3996 (patch)
tree9bd112e58b7625c2ae5922663519f158ff6c3880 /src/main/java
parent7a9b0c597cf8e2a3727e569b7318807b5a33b865 (diff)
Add tests for common supertypes
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/types/Types.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/java/org/shedlang/compiler/types/Types.java b/src/main/java/org/shedlang/compiler/types/Types.java
index 45476a03..d05f4665 100644
--- a/src/main/java/org/shedlang/compiler/types/Types.java
+++ b/src/main/java/org/shedlang/compiler/types/Types.java
@@ -57,7 +57,6 @@ public class Types {
}
public static Type commonSupertype(List<Type> subtypes) {
- // TODO: test this!
var uniqueSubtypes = subtypes.stream()
.filter(subtype -> subtype != Types.BOTTOM)
.collect(Collectors.toSet());