diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-02 16:09:02 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-02 16:09:02 +0100 |
| commit | b6d0584ea1901fc8f2d8551ebf72c84852baec59 (patch) | |
| tree | d66128c5e22bc6bfdd59449cd58d22a3a6f77d45 /src/main/java/org | |
| parent | c7b76c51056407d14304ac1739b92960e4a2b1e6 (diff) | |
Generate Rust reference to sum type
Diffstat (limited to 'src/main/java/org')
| -rw-r--r-- | src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java index 9092e16..8798741 100644 --- a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java +++ b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java @@ -209,7 +209,11 @@ public class RustTypesGenerator implements Generator { } case SumType sumType -> { - throw new UnsupportedOperationException("TODO"); + yield generateTypePath( + sumType.namespaceName(), + sumType.name(), + context + ); } case TypeLevelValueType typeLevelValueType -> { |
