summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/setter-method.slang.expected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diagnostics/setter-method.slang.expected')
-rw-r--r--tests/diagnostics/setter-method.slang.expected4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/diagnostics/setter-method.slang.expected b/tests/diagnostics/setter-method.slang.expected
index 1c3dcad48..8df993f78 100644
--- a/tests/diagnostics/setter-method.slang.expected
+++ b/tests/diagnostics/setter-method.slang.expected
@@ -1,13 +1,13 @@
result code = -1
standard error = {
+tests/diagnostics/setter-method.slang(16): note 30049: attempting to assign to a const variable or immutable member; use '[mutating]' attribute on the containing method to allow modification
tests/diagnostics/setter-method.slang(16): error 30011: left of '=' is not an l-value.
center = value;
^
-tests/diagnostics/setter-method.slang(16): note 30049: a 'this' parameter is an immutable parameter by default in Slang; apply the `[mutating]` attribute to the function declaration to opt in to a mutable `this`
+tests/diagnostics/setter-method.slang(21): note 30049: attempting to assign to a const variable or immutable member; use '[mutating]' attribute on the containing method to allow modification
tests/diagnostics/setter-method.slang(21): error 30011: left of '=' is not an l-value.
this.radius = value;
^
-tests/diagnostics/setter-method.slang(21): note 30049: a 'this' parameter is an immutable parameter by default in Slang; apply the `[mutating]` attribute to the function declaration to opt in to a mutable `this`
}
standard output = {
}