Skip to content

Commit

Permalink
Update ttcn3/types/types.go
Browse files Browse the repository at this point in the history
  • Loading branch information
5nord authored Jul 23, 2024
1 parent 56e335a commit d4bdd0b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ttcn3/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,10 @@ func TypeOf(n syntax.Expr) Type {
if t := mostSpecificCommonTypeOfArray(typeList...); isRecord || t == Predefined["any"] {
t = &StructuredType{Kind: Record, Fields: fields}
return t
} else {
// Map vs Record of Maps?
if _, ok := t.(*MapType); ok {
// Map vs Record of Maps?
} else if _, ok := t.(*MapType); ok {
return t
}
} else {
return &ListType{Kind: RecordOf, ElementType: t}
}
}
Expand Down

0 comments on commit d4bdd0b

Please sign in to comment.