summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/extension-full-name.slang.expected
blob: 72eef77e3eb8d2f996ceeaf569c66ce983f42ac6 (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
result code = -1
standard error = {
tests/diagnostics/extension-full-name.slang(185): error 30019: expected an expression of type 'GenericType<half>.State', got 'int'
    state1 = 0;    // Error: expected expr of type 'GenericType<half>.State', got 'int'
             ^
tests/diagnostics/extension-full-name.slang(186): error 30019: expected an expression of type 'GenericType<float>.InnerType.Options', got 'int'
    options1 = 0;  // Error: expected expr of type 'GenericType<float>.InnerType.Options', got 'int'
               ^
tests/diagnostics/extension-full-name.slang(187): error 30019: expected an expression of type 'NonGenericType.Config', got 'int'
    config1 = 0;   // Error: expected expr of type 'NonGenericType.Config', got 'int'
              ^
tests/diagnostics/extension-full-name.slang(188): error 30019: expected an expression of type 'Container.Nested.Settings', got 'int'
    settings1 = 0; // Error: expected expr of type 'Container.Nested.Settings', got 'int'
                ^
tests/diagnostics/extension-full-name.slang(189): error 30019: expected an expression of type 'Container.Nested.DeepNested.Record', got 'int'
    record1 = 0;   // Error: expected expr of type 'Container.Nested.DeepNested.Record', got 'int'
              ^
tests/diagnostics/extension-full-name.slang(189): note: explicit conversion from 'int' to 'Container.Nested.DeepNested.Record' is possible
tests/diagnostics/extension-full-name.slang(197): error 30027: 'getOptions' is not a member of 'GenericType<int>.InnerType'.
        intInner.getOptions(); // This won't compile as intInner doesn't have getOptions
                 ^~~~~~~~~~
tests/diagnostics/extension-full-name.slang(227): error 30019: expected an expression of type 'GenericType<float>.InnerType.Options', got 'GenericType<half>.State'
            .createState(); // Error: expected expr of type 'GenericType<float>.InnerType.Options',
                        ^
tests/diagnostics/extension-full-name.slang(229): error 30019: expected an expression of type 'GenericType<half>.State', got 'NonGenericType.Config'
    state1 = nonGenType.createConfig(); // Error: expected expr of type 'GenericType<half>.State',
                                    ^
tests/diagnostics/extension-full-name.slang(231): error 30019: expected an expression of type 'NonGenericType.Config', got 'Container.Nested.Settings'
    config1 = nested.createSettings();  // Error: expected expr of type 'NonGenericType.Config', got
                                   ^
tests/diagnostics/extension-full-name.slang(305): error 30019: expected an expression of type 'Bar[3].DataStats', got 'int'
    barStats = 0; // Error: expected expr of type 'Bar[3].DataStats', got 'int'
               ^
tests/diagnostics/extension-full-name.slang(313): error 30019: expected an expression of type 'Bar[2].DataStats', got 'Bar[3].DataStats'
    bar2Stats = barArray.computeStats(); // Error: expected expr of type 'Bar[2].DataStats', got 'Bar[3].DataStats'
                                     ^
tests/diagnostics/extension-full-name.slang(356): error 30019: expected an expression of type 'SimpleBase.NamedConfig', got 'int'
    config = 0; // Error: expected expr of type 'SimpleBase.NamedConfig', got 'int'
             ^
}
standard output = {
}