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