summaryrefslogtreecommitdiff
path: root/tests/diagnostics/bad-operator-call.slang.expected
blob: 21cb6bd414058c9d09255d36ec5e4f2daf90b195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
result code = -1
standard error = {
tests/diagnostics/bad-operator-call.slang(18): error 39999: no overload for '+=' applicable to arguments of type (int, S)
    a += b;
      ^~
core.meta.slang(2430): note 39999: candidate: func +=<T, R:int, C:int>(out matrix<T,R,C>, T) -> matrix<T,R,C>
core.meta.slang(2422): note 39999: candidate: func +=<T, R:int, C:int>(out matrix<T,R,C>, matrix<T,R,C>) -> matrix<T,R,C>
core.meta.slang(2414): note 39999: candidate: func +=<T, N:int>(out vector<T,N>, T) -> vector<T,N>
core.meta.slang(2406): note 39999: candidate: func +=<T, N:int>(out vector<T,N>, vector<T,N>) -> vector<T,N>
core.meta.slang(2398): note 39999: candidate: func +=<T>(out T, T) -> T
tests/diagnostics/bad-operator-call.slang(20): error 39999: no overload for '+' applicable to arguments of type (int, S)
    a = a + b;
          ^
core.meta.slang(2256): note 39999: candidate: func +(uintptr_t, uintptr_t) -> uintptr_t
core.meta.slang(2248): note 39999: candidate: func +(uint64_t, uint64_t) -> uint64_t
core.meta.slang(2240): note 39999: candidate: func +(uint, uint) -> uint
core.meta.slang(2232): note 39999: candidate: func +(uint16_t, uint16_t) -> uint16_t
core.meta.slang(2224): note 39999: candidate: func +(uint8_t, uint8_t) -> uint8_t
core.meta.slang(2216): note 39999: candidate: func +(double, double) -> double
core.meta.slang(2208): note 39999: candidate: func +(float, float) -> float
core.meta.slang(2200): note 39999: candidate: func +(half, half) -> half
core.meta.slang(2192): note 39999: candidate: func +(intptr_t, intptr_t) -> intptr_t
core.meta.slang(2184): note 39999: candidate: func +(int64_t, int64_t) -> int64_t
tests/diagnostics/bad-operator-call.slang(20): note 39999: 3 more overload candidates
tests/diagnostics/bad-operator-call.slang(22): error 39999: no overload for '~' applicable to arguments of type (S)
    a = ~b;
        ^
core.meta.slang(2125): note 39999: candidate: __prefix func ~(uintptr_t) -> uintptr_t
core.meta.slang(2121): note 39999: candidate: __prefix func ~(uint64_t) -> uint64_t
core.meta.slang(2117): note 39999: candidate: __prefix func ~(uint) -> uint
core.meta.slang(2113): note 39999: candidate: __prefix func ~(uint16_t) -> uint16_t
core.meta.slang(2109): note 39999: candidate: __prefix func ~(uint8_t) -> uint8_t
core.meta.slang(2105): note 39999: candidate: __prefix func ~(intptr_t) -> intptr_t
core.meta.slang(2101): note 39999: candidate: __prefix func ~(int64_t) -> int64_t
core.meta.slang(2097): note 39999: candidate: __prefix func ~(int) -> int
core.meta.slang(2093): note 39999: candidate: __prefix func ~(int16_t) -> int16_t
core.meta.slang(2089): note 39999: candidate: __prefix func ~(int8_t) -> int8_t
tests/diagnostics/bad-operator-call.slang(27): error 30047: argument passed to parameter '0' must be l-value.
    a += c;
    ^
tests/diagnostics/bad-operator-call.slang(27): note 30048: argument was implicitly cast from 'int' to 'vector<int,4>', and Slang does not support using an implicit cast as an l-value
tests/diagnostics/bad-operator-call.slang(31): error 39999: no overload for '+=' applicable to arguments of type (vector<float,3>, vector<int,4>)
    d += c;
      ^~
core.meta.slang(2430): note 39999: candidate: func +=<T, R:int, C:int>(out matrix<T,R,C>, T) -> matrix<T,R,C>
core.meta.slang(2422): note 39999: candidate: func +=<T, R:int, C:int>(out matrix<T,R,C>, matrix<T,R,C>) -> matrix<T,R,C>
core.meta.slang(2414): note 39999: candidate: func +=<T, N:int>(out vector<T,N>, T) -> vector<T,N>
core.meta.slang(2406): note 39999: candidate: func +=<T, N:int>(out vector<T,N>, vector<T,N>) -> vector<T,N>
core.meta.slang(2398): note 39999: candidate: func +=<T>(out T, T) -> T
tests/diagnostics/bad-operator-call.slang(33): error 39999: no overload for '+' applicable to arguments of type (vector<int,4>, vector<float,3>)
    d = c + d;
          ^
core.meta.slang(2262): note 39999: candidate: func +<4>(uintptr_t4, uintptr_t) -> uintptr_t4
core.meta.slang(2260): note 39999: candidate: func +<3>(uintptr_t, uintptr_t3) -> uintptr_t3
core.meta.slang(2256): note 39999: candidate: func +(uintptr_t, uintptr_t) -> uintptr_t
core.meta.slang(2254): note 39999: candidate: func +<4>(uint64_t4, uint64_t) -> uint64_t4
core.meta.slang(2252): note 39999: candidate: func +<3>(uint64_t, uint64_t3) -> uint64_t3
core.meta.slang(2248): note 39999: candidate: func +(uint64_t, uint64_t) -> uint64_t
core.meta.slang(2246): note 39999: candidate: func +<4>(uint4, uint) -> uint4
core.meta.slang(2244): note 39999: candidate: func +<3>(uint, uint3) -> uint3
core.meta.slang(2240): note 39999: candidate: func +(uint, uint) -> uint
core.meta.slang(2238): note 39999: candidate: func +<4>(uint16_t4, uint16_t) -> uint16_t4
tests/diagnostics/bad-operator-call.slang(33): note 39999: 29 more overload candidates
}
standard output = {
}