yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Gangzheng TongEmit additional diagnostic for invalid pointer taking operations (#7663)21a66267c

master
708 B13 linesraw
1result code = -1
2standard error = {
3tests/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
4tests/diagnostics/setter-method.slang(16): error 30011: left of '=' is not an l-value.
5        center = value;
6               ^
7tests/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
8tests/diagnostics/setter-method.slang(21): error 30011: left of '=' is not an l-value.
9        this.radius = value;
10                    ^
11}
12standard output = {
13}