Skip to content

Commit 0d79b95

Browse files
vtjnashKristofferC
authored andcommitted
codegen: fix setfield! error message emission
(cherry picked from commit a11d804)
1 parent 53432d5 commit 0d79b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cgutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3280,7 +3280,7 @@ static jl_cgval_t emit_setfield(jl_codectx_t &ctx,
32803280
const jl_cgval_t *modifyop, const std::string &fname)
32813281
{
32823282
if (!sty->name->mutabl && checked) {
3283-
std::string msg = fname + "immutable struct of type "
3283+
std::string msg = fname + ": immutable struct of type "
32843284
+ std::string(jl_symbol_name(sty->name->name))
32853285
+ " cannot be changed";
32863286
emit_error(ctx, msg);

0 commit comments

Comments
 (0)