diff --git a/compiler/ssa/type.go b/compiler/ssa/type.go index a6db12f9..c7a99ac1 100644 --- a/compiler/ssa/type.go +++ b/compiler/ssa/type.go @@ -391,6 +391,8 @@ func (p Program) toType(raw types.Type) Type { return &aType{llvm.PointerType(p.rtChan(), 0), typ, vkChan} case *types.Alias: return p.toType(types.Unalias(t)) + case *types.TypeParam: + return p.toType(t.Constraint()) } panic(fmt.Sprintf("toLLVMType: todo - %T\n", raw)) }