bug fixes for using "when" in functions that have a local of type "any"

This commit is contained in:
Vern Paxson 2020-04-25 16:56:24 -07:00
parent cfe6616de1
commit b86d5b4424
5 changed files with 32 additions and 2 deletions

View file

@ -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: