Skip to content

Commit a1d6d88

Browse files
committed
wit/bindgen: use type aliases for variant shapes
1 parent c07fd71 commit a1d6d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wit/bindgen/generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ func (g *generator) typeShape(file *gen.File, dir wit.Direction, t wit.Type) str
10181018
}
10191019

10201020
func (g *generator) typeDefShape(file *gen.File, dir wit.Direction, t *wit.TypeDef) string {
1021-
switch kind := t.Kind.(type) {
1021+
switch kind := t.Root().Kind.(type) {
10221022
case wit.Type:
10231023
return g.typeShape(file, dir, kind)
10241024
case *wit.Variant:

0 commit comments

Comments
 (0)