diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-29 11:22:04 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-29 11:22:04 +0000 |
| commit | 4bc8addad4bf16b86bc569696e6dada09375cc61 (patch) | |
| tree | 13c05aa1ab0c635f84ed082415ae051466307262 /src/main/java | |
| parent | 0af716f40b0073089027b7082f1b4054cd808d64 (diff) | |
Support (no-op) type substitution for struct types
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/types/TypeSubstitution.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/shedlang/compiler/types/TypeSubstitution.java b/src/main/java/org/shedlang/compiler/types/TypeSubstitution.java index a6719d17..5d2b7077 100644 --- a/src/main/java/org/shedlang/compiler/types/TypeSubstitution.java +++ b/src/main/java/org/shedlang/compiler/types/TypeSubstitution.java @@ -33,9 +33,8 @@ public class TypeSubstitution { case StringType stringType -> type; - case StructType structType -> { - throw new UnsupportedOperationException("TODO"); - } + case StructType structType -> + type; case SumType sumType -> { throw new UnsupportedOperationException("TODO"); |
