diff options
author | Björn Gustavsson <[email protected]> | 2016-05-18 06:21:34 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-05-20 10:07:17 +0200 |
commit | 0f222d55ce46358aa7891ea482655937daaf8b52 (patch) | |
tree | 45bca0d751d744e4c5ec71f2a4ca3574bf7064a3 /otp_versions.table | |
parent | 6515f262cba9325bef84ce90758f2e74ebfb8c9e (diff) | |
download | otp-0f222d55ce46358aa7891ea482655937daaf8b52.tar.gz otp-0f222d55ce46358aa7891ea482655937daaf8b52.tar.bz2 otp-0f222d55ce46358aa7891ea482655937daaf8b52.zip |
beam_type: Correct handling of setelement/3
We must be careful how we treat the type info for the result of:
setelement(Index, Tuple, NewValue)
If Tuple had type information, the result of setelement/3 (in x(0))
would be assigned the same type information. But that is not safe
for:
setelement(1, Tuple, NewValue)
since the type for the first element will be changed.
Therefore, we must take care to remove the type information for
the first element of the tuple if might have been modified by
setelement/3.
Diffstat (limited to 'otp_versions.table')
0 files changed, 0 insertions, 0 deletions