diff --git a/compiler/src/dmd/statementsem.d b/compiler/src/dmd/statementsem.d index d0e1b9a23d..c5c8a12593 100644 --- a/compiler/src/dmd/statementsem.d +++ b/compiler/src/dmd/statementsem.d @@ -1381,7 +1381,7 @@ Statement statementSemanticVisit(Statement s, Scope* sc) p.type = p.type.addStorageClass(sc).typeSemantic(loc, sc2); if (!exp.implicitConvTo(p.type)) { - error(fs.loc, "cannot implicilty convert range element of type `%s` to variable `%s` of type `%s`", + error(fs.loc, "cannot implicitly convert tuple element of type `%s` to variable `%s` of type `%s`", exp.type.toChars(), p.toChars(), p.type.toChars()); return retError(); } diff --git a/compiler/test/fail_compilation/fail13577.d b/compiler/test/fail_compilation/fail13577.d index 79f9068c75..f104807359 100644 --- a/compiler/test/fail_compilation/fail13577.d +++ b/compiler/test/fail_compilation/fail13577.d @@ -3,7 +3,7 @@ /* TEST_OUTPUT: --- -fail_compilation/fail13577.d(27): Error: cannot implicilty convert range element of type `int[]` to variable `x` of type `immutable(int[])` +fail_compilation/fail13577.d(27): Error: cannot implicitly convert tuple element of type `int[]` to variable `x` of type `immutable(int[])` --- */