~fix magic union autoselect

Stop of after first successful conversion
This commit is contained in:
Michael Davidsaver
2023-02-11 11:33:06 -08:00
parent a613778471
commit 274133bcfc
2 changed files with 24 additions and 1 deletions
+1
View File
@@ -696,6 +696,7 @@ void Value::copyIn(const void *ptr, StoreType type)
continue;
}
val = std::move(temp);
break;
}
if(!val)
throw NoConvert("Unsupported assignment to unselected union");