mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Merge remote-tracking branch 'origin/topic/vern/any-typetype-when-fix'
- Minor whitespace adjutment in merge * origin/topic/vern/any-typetype-when-fix: bug fixes for using "when" in functions that have a local of type "any"
This commit is contained in:
commit
b776f17cea
5 changed files with 32 additions and 2 deletions
|
@ -136,6 +136,10 @@ IntrusivePtr<Val> Val::DoClone(CloneState* state)
|
|||
return {NewRef{}, this};
|
||||
}
|
||||
|
||||
if ( type->Tag() == TYPE_TYPE )
|
||||
// These are immutable, essentially.
|
||||
return {NewRef{}, this};
|
||||
|
||||
// Fall-through.
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue