summaryrefslogtreecommitdiff
path: root/tests/diagnostics/methods/mutating-method-on-rvalue.slang.expected
blob: d9694276b5b25b0d59a9580b86044a79a711794a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
result code = -1
standard error = {
tests/diagnostics/methods/mutating-method-on-rvalue.slang(13): error 30050: mutating method 'increment' cannot be called on an immutable value
        increment();
                 ^
tests/diagnostics/methods/mutating-method-on-rvalue.slang(13): note 30049: attempting to assign to a const variable or immutable member; use '[mutating]' attribute on the containing method to allow modification
tests/diagnostics/methods/mutating-method-on-rvalue.slang(25): error 30050: mutating method 'increment' cannot be called on an immutable value
    gCounter.increment();
                      ^
tests/diagnostics/methods/mutating-method-on-rvalue.slang(25): note 30049: attempting to assign to a const variable or immutable member; use '[mutating]' attribute on the containing method to allow modification
}
standard output = {
}