Skip to content

Commit

Permalink
updated "void is an invalid type for the field" message
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Feb 5, 2024
1 parent bbf81e9 commit 84435f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ protected void checkField(JvmField field) {
var declaredFieldType = field.getType();
if (isPrimitiveVoid(declaredFieldType)) {
var associated = associations.getPrimarySourceElement(declaredFieldType);
error("Primitive void cannot be a dependency.",
error("void is an invalid type for the field " + field.getSimpleName(),
associated, null, INVALID_USE_OF_TYPE);
}
}
Expand Down

0 comments on commit 84435f0

Please sign in to comment.