summaryrefslogtreecommitdiff
path: root/cpp/test/Slice/errorDetection/IllegalLocal.ice
blob: 34e916b98c14388fa7a66b68e8ecced05ff2207e (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// **********************************************************************
//
// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************



module Test
{

interface i1 {};

local interface i2 extends i1 {};	// error

interface i3 extends i2 {};		// error

local interface i4 extends i2 {};	// OK

class c1 implements i1 {};		// OK

class c2 implements i2 {};		// error

local exception le {};

interface i
{
    void op() throws le;		// error
};

exception le2 extends le {};		// error

local sequence<long> lls;

class c3
{
    LocalObject lo1;			// error
    i2*         lo2;			// error
    i2		lo3;			// error
    lls		ls;			// error
};

struct s1
{
    lls ls;				// error
};

exception e3
{
    lls ls;				// error
};

sequence<LocalObject> los;		// error

local sequence<byte> bs;
dictionary<bs, long> d1;		// error
dictionary<long, bs> d2;		// error
dictionary<bs, bs> d3;			// error

local interface i4;
struct s2
{
    i4 m;
};

local enum en { a };
struct s3
{
    en e;
};

interface i5
{
    void op(en p);
    LocalObject op2();
};

exception E
{
};

local interface i6
{
    void op() throws E;			// error
};

local class c7
{
    void op() throws E;			// error
};

};