blob: 8df993f78e282ac82767aa1074a49a6e20e24fb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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(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;
^
}
standard output = {
}
|