diff options
Diffstat (limited to 'tests/errors/PlusEqualsCantAssignToObject.java')
-rw-r--r-- | tests/errors/PlusEqualsCantAssignToObject.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/errors/PlusEqualsCantAssignToObject.java b/tests/errors/PlusEqualsCantAssignToObject.java new file mode 100644 index 000000000..c974cba87 --- /dev/null +++ b/tests/errors/PlusEqualsCantAssignToObject.java @@ -0,0 +1,6 @@ +class PlusEqualsCantAssignToObject { + public static void main(String[] args) { + Object o = "hello"; + o += "bye"; + } +} |