diff options
author | Hans Bolinder <[email protected]> | 2017-02-13 15:48:23 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-03-08 14:11:49 +0100 |
commit | 97164e67aa45f099ca28213586f2aed781f48ae4 (patch) | |
tree | ceae7a4fe3e08dac77ce0d3db433adebdc41dab6 /erts/preloaded/src/init.erl | |
parent | 25f818f8f57b6606215ccbf3884b2cec7b30c7b1 (diff) | |
download | otp-97164e67aa45f099ca28213586f2aed781f48ae4.tar.gz otp-97164e67aa45f099ca28213586f2aed781f48ae4.tar.bz2 otp-97164e67aa45f099ca28213586f2aed781f48ae4.zip |
erts: Fix handling of locations and annotations
Diffstat (limited to 'erts/preloaded/src/init.erl')
-rw-r--r-- | erts/preloaded/src/init.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/preloaded/src/init.erl b/erts/preloaded/src/init.erl index 86dc9a2957..3dc6953b4c 100644 --- a/erts/preloaded/src/init.erl +++ b/erts/preloaded/src/init.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2016. All Rights Reserved. +%% Copyright Ericsson AB 1996-2017. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -1084,7 +1084,7 @@ start_it({eval,Bin}) -> {ok,Ts,_} = erl_scan:string(Str), Ts1 = case reverse(Ts) of [{dot,_}|_] -> Ts; - TsR -> reverse([{dot,1} | TsR]) + TsR -> reverse([{dot,erl_anno:new(1)} | TsR]) end, {ok,Expr} = erl_parse:parse_exprs(Ts1), {value, _Value, _Bs} = erl_eval:exprs(Expr, erl_eval:new_bindings()), |