summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/methods/mutating-method-on-rvalue.slang.expected
blob: 066c8439df1de4c94ff0f11fb11998471b723b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();
                      ^
}
standard output = {
}