diff --git a/matlab/generated/+basic_types/AliasedMap.m b/matlab/generated/+basic_types/AliasedMap.m new file mode 100644 index 0000000..99330cb --- /dev/null +++ b/matlab/generated/+basic_types/AliasedMap.m @@ -0,0 +1,4 @@ +% This file was generated by the "yardl" tool. DO NOT EDIT. + +classdef AliasedMap < yardl.Map +end diff --git a/matlab/generated/+test_model/AliasedMap.m b/matlab/generated/+test_model/AliasedMap.m new file mode 100644 index 0000000..ab6de56 --- /dev/null +++ b/matlab/generated/+test_model/AliasedMap.m @@ -0,0 +1,4 @@ +% This file was generated by the "yardl" tool. DO NOT EDIT. + +classdef AliasedMap < basic_types.AliasedMap +end diff --git a/matlab/generated/+test_model/RecordContainingVectorsOfAliases.m b/matlab/generated/+test_model/RecordContainingVectorsOfAliases.m index 347fc0c..b1027a9 100644 --- a/matlab/generated/+test_model/RecordContainingVectorsOfAliases.m +++ b/matlab/generated/+test_model/RecordContainingVectorsOfAliases.m @@ -12,7 +12,7 @@ function self = RecordContainingVectorsOfAliases(kwargs) arguments kwargs.strings = string.empty(); - kwargs.maps = yardl.Map.empty(); + kwargs.maps = test_model.AliasedMap.empty(); kwargs.arrays = single.empty(); kwargs.tuples = test_model.MyTuple.empty(); end diff --git a/tooling/internal/matlab/types/types.go b/tooling/internal/matlab/types/types.go index 0635c1f..7a64708 100644 --- a/tooling/internal/matlab/types/types.go +++ b/tooling/internal/matlab/types/types.go @@ -153,7 +153,7 @@ func typeCanBeAliased(t dsl.Type) bool { } } else if gt, ok := t.(*dsl.GeneralizedType); ok { switch gt.Dimensionality.(type) { - case *dsl.Vector, *dsl.Array, *dsl.Map: + case *dsl.Vector, *dsl.Array: return false } }