summaryrefslogtreecommitdiff
path: root/tests/bugs/generic-type-arg-overloaded.slang.expected
blob: 1c41da717575643cee0e3afa69c4c83b91e55e1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
result code = -1
standard error = {
tests/bugs/generic-type-arg-overloaded.slang(14): error 30200: declaration of 'Stuff' conflicts with existing declaration
struct Stuff {}
       ^~~~~
tests/bugs/generic-type-arg-overloaded.slang(11): note: see previous declaration of 'Stuff'
struct Stuff : IThing { int getVal() { return 1; } }
       ^~~~~
tests/bugs/generic-type-arg-overloaded.slang(26): error 39999: ambiguous reference to 'Stuff'
    return util<Stuff>()
                ^~~~~
tests/bugs/generic-type-arg-overloaded.slang(14): note 39999: candidate: struct Stuff
struct Stuff {}
       ^~~~~
tests/bugs/generic-type-arg-overloaded.slang(11): note 39999: candidate: struct Stuff
struct Stuff : IThing { int getVal() { return 1; } }
       ^~~~~
tests/bugs/generic-type-arg-overloaded.slang(32): error 39999: expected a generic when using '<...>' (found: '() -> int')
        + nonGeneric<G>();
          ^~~~~~~~~~
}
standard output = {
}