summaryrefslogtreecommitdiff
path: root/tests/diagnostics/bad-operator-call.slang.expected
blob: 1dd52587c164a0745a0f87d087720f3e68597764 (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
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(1904): note 39999: candidate: func +=<T, R:int, C:int>(matrix<T,R,C>, T) -> matrix<T,R,C>
core.meta.slang(1896): note 39999: candidate: func +=<T, R:int, C:int>(matrix<T,R,C>, matrix<T,R,C>) -> matrix<T,R,C>
core.meta.slang(1888): note 39999: candidate: func +=<T, N:int>(vector<T,N>, T) -> vector<T,N>
core.meta.slang(1880): note 39999: candidate: func +=<T, N:int>(vector<T,N>, vector<T,N>) -> vector<T,N>
core.meta.slang(1872): note 39999: candidate: func +=<T>(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(1710): note 39999: candidate: func +(uint64_t, uint64_t) -> uint64_t
core.meta.slang(1703): note 39999: candidate: func +(uint, uint) -> uint
core.meta.slang(1696): note 39999: candidate: func +(uint16_t, uint16_t) -> uint16_t
core.meta.slang(1689): note 39999: candidate: func +(uint8_t, uint8_t) -> uint8_t
core.meta.slang(1682): note 39999: candidate: func +(double, double) -> double
core.meta.slang(1675): note 39999: candidate: func +(float, float) -> float
core.meta.slang(1668): note 39999: candidate: func +(half, half) -> half
core.meta.slang(1661): note 39999: candidate: func +(int64_t, int64_t) -> int64_t
core.meta.slang(1654): note 39999: candidate: func +(int, int) -> int
core.meta.slang(1647): note 39999: candidate: func +(int16_t, int16_t) -> int16_t
tests/diagnostics/bad-operator-call.slang(20): note 39999: 1 more overload candidates
tests/diagnostics/bad-operator-call.slang(22): error 39999: no overload for '~' applicable to arguments of type (S)
    a = ~b;
        ^
slang-stdlib.cpp(1718): note 39999: candidate: func ~(uint64_t) -> uint64_t
slang-stdlib.cpp(1715): note 39999: candidate: func ~(uint) -> uint
slang-stdlib.cpp(1712): note 39999: candidate: func ~(uint16_t) -> uint16_t
slang-stdlib.cpp(1709): note 39999: candidate: func ~(uint8_t) -> uint8_t
slang-stdlib.cpp(1706): note 39999: candidate: func ~(int64_t) -> int64_t
slang-stdlib.cpp(1703): note 39999: candidate: func ~(int) -> int
slang-stdlib.cpp(1700): note 39999: candidate: func ~(int16_t) -> int16_t
slang-stdlib.cpp(1697): note 39999: candidate: 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(1904): note 39999: candidate: func +=<T, R:int, C:int>(matrix<T,R,C>, T) -> matrix<T,R,C>
core.meta.slang(1896): note 39999: candidate: func +=<T, R:int, C:int>(matrix<T,R,C>, matrix<T,R,C>) -> matrix<T,R,C>
core.meta.slang(1888): note 39999: candidate: func +=<T, N:int>(vector<T,N>, T) -> vector<T,N>
core.meta.slang(1880): note 39999: candidate: func +=<T, N:int>(vector<T,N>, vector<T,N>) -> vector<T,N>
core.meta.slang(1872): note 39999: candidate: func +=<T>(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(1715): note 39999: candidate: func +<4>(vector<uint64_t,4>, uint64_t) -> vector<uint64_t,4>
core.meta.slang(1713): note 39999: candidate: func +<3>(uint64_t, vector<uint64_t,3>) -> vector<uint64_t,3>
core.meta.slang(1710): note 39999: candidate: func +(uint64_t, uint64_t) -> uint64_t
core.meta.slang(1708): note 39999: candidate: func +<4>(vector<uint,4>, uint) -> vector<uint,4>
core.meta.slang(1706): note 39999: candidate: func +<3>(uint, vector<uint,3>) -> vector<uint,3>
core.meta.slang(1703): note 39999: candidate: func +(uint, uint) -> uint
core.meta.slang(1701): note 39999: candidate: func +<4>(vector<uint16_t,4>, uint16_t) -> vector<uint16_t,4>
core.meta.slang(1699): note 39999: candidate: func +<3>(uint16_t, vector<uint16_t,3>) -> vector<uint16_t,3>
core.meta.slang(1696): note 39999: candidate: func +(uint16_t, uint16_t) -> uint16_t
core.meta.slang(1694): note 39999: candidate: func +<4>(vector<uint8_t,4>, uint8_t) -> vector<uint8_t,4>
tests/diagnostics/bad-operator-call.slang(33): note 39999: 23 more overload candidates
}
standard output = {
}