yum-mirror/slang

Making it easier to work with shaders

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

jsmall-nvidiaDiagnostic location highlighting (#1700)369279e91

master
523 B14 linesraw
1result code = -1
2standard error = {
3tests/diagnostics/accessors.slang(11): error 31101: accessors other than 'set' must not have parameters
4        get(a) { return 0; }
5        ^~~
6tests/diagnostics/accessors.slang(13): error 31102: a 'set' accessor may not have more than one parameter
7        set(a, b) { }
8               ^
9tests/diagnostics/accessors.slang(18): error 31102: 'set' parameter 'c' has type 'int' which does not match the expected type 'float'
10        set(c : int) { }
11            ^
12}
13standard output = {
14}