Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / IDL_Test / invalid_scoping1.idl
blob386a0079bc3a89c46479b2afc9410af62236bbba
2 //=============================================================================
3 /**
4 * @file invalid_scoping1.idl
6 * This file contains examples of IDL code that has
7 * caused problems in the past for the TAO IDL
8 * compiler. This test is to make sure the problems
9 * stay fixed.
11 //=============================================================================
14 module A {
15 typedef long mylong;
16 module B {
17 module A { // This is supposed to HIDE outer scope A
18 typedef short myshort;
20 typedef A::myshort CORRECT;
21 typedef A::mylong INVALID; // Required to use ::A::mylong
22 // Recursive search is not allowable above as the module A
23 // being referenced is NOT the same as the local module A
24 // that is hiding the outer scoped name, they just happen
25 // to share the same short name.