summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/invalid_scoping1.idl
blob: 7138b1d53d3104ee822261e7ea25549dfe34d1ac (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

//=============================================================================
/**
 *  @file    invalid_scoping1.idl
 *
 *  This file contains examples of IDL code that has
 *  caused problems in the past for the TAO IDL
 *  compiler. This test is to make sure the problems
 *  stay fixed.
 *
 *
 */
//=============================================================================


module A {
  typedef long mylong;
  module B {
    module A { // This is supposed to HIDE outer scope A
      typedef short myshort;
    };
    typedef A::myshort CORRECT;
    typedef A::mylong  INVALID; // Required to use ::A::mylong
    // Recursive search is not allowable above as the module A
    // being referenced is NOT the same as the local module A
    // that is hiding the outer scoped name, they just happen
    // to share the same short name.
  };
};