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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
|
// **********************************************************************
//
// Copyright (c) 2003-2009 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
{
sequence<long> ls;
struct s00
{
ls ls; // Changed meaning
};
struct s0
{
Test::ls ls; // OK
};
struct s1
{
ls mem;
long ls; // Changed meaning
};
struct s2
{
Test::ls mem;
long ls; // OK
};
module M
{
sequence<long> ls;
};
interface i1
{
M::ls op();
void M(); // Changed meaning
};
interface i2
{
M::ls op();
long M(); // Changed meaning
};
module N
{
interface n1 extends i1 {};
interface i1 {}; // Changed meaning
interface i2 extends i2 {}; // Changed meaning
};
module O
{
interface n1 extends ::Test::i1 {};
interface i1 {}; // OK
interface i2 extends ::Test::i2 {}; // OK
};
exception e1 {};
exception e2 {};
module E
{
exception ee1 extends e1 {};
exception e1 {}; // Changed meaning
exception e2 extends e2 {}; // Changed meaning
};
interface c1 {};
class c2 {};
module C
{
class cc1 implements c1 {};
class c1 {}; // Changed meaning
class c2 extends c2 {}; // Changed meaning
};
enum color { blue };
module B
{
const color fc = blue;
interface blue {}; // Changed meaning
};
enum counter { one, two };
sequence<counter> CounterSeq;
module SS
{
sequence<CounterSeq> y;
enum CounterSeq { a, b };
};
interface ParamTest
{
void op(long param);
void op2(counter param);
void param(counter counter); // Changed meaning
void op3(long counter, counter x); // Second "counter" is not a type
void op4(long param, long param);
};
sequence<int> IS;
struct x
{
IS is; // Changed meaning (case-insensitive)
};
struct y
{
::Test::IS is; // OK, nothing introduced
};
interface Blah
{
void op1() throws ::Test::E::ee1; // Nothing introduced
void E(); // OK
void op2() throws E; // Changed meaning
};
interface Blah2
{
void op3() throws ::Test::E::ee1; // Nothing introduced
void E(); // OK
void op4() throws E::ee1; // Changed meaning
};
interface Blah3
{
void op5() throws E::ee1; // Introduces E
void E(); // Changed meaning
};
module M1
{
enum smnpEnum { a };
struct smnpStruct
{
smnpEnum e;
};
exception smnpException
{
};
module M2
{
enum C { C1, C2, C3 };
};
};
const Test::M1::M2::C MyConstant1 = Test::M1::M2::C2; // OK
const ::Test::M1::M2::C MyConstant2 = Test::M1::M2::C2; // OK
const Test::M1::M2::C MyConstant3 = ::Test::M1::M2::C2; // OK
const ::Test::M1::M2::C MyConstant4 = ::Test::M1::M2::C2; // OK
class smnpTest1Class
{
M1::smnpStruct smnpTest1Op1() throws M1::smnpException; // OK
};
};
|