Skip to content

Commit a11d804

Browse files
committed
codegen: fix setfield! error message emission
1 parent 485495f commit a11d804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cgutils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3293,7 +3293,7 @@ static jl_cgval_t emit_setfield(jl_codectx_t &ctx,
32933293
const jl_cgval_t *modifyop, const std::string &fname)
32943294
{
32953295
if (!sty->name->mutabl && checked) {
3296-
std::string msg = fname + "immutable struct of type "
3296+
std::string msg = fname + ": immutable struct of type "
32973297
+ std::string(jl_symbol_name(sty->name->name))
32983298
+ " cannot be changed";
32993299
emit_error(ctx, msg);

0 commit comments

Comments
 (0)