~extremepopcorn/dhlib/dhlib_ep

« back to all changes in this revision

Viewing changes to haxe/BrokenVisibility.hx

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* <license>
 
2
 * This file is part of the dis-Emi-A HaXe Library. Copyright (c) edA-qa mort-ora-y
 
3
 * For full copyright and license information please refer to doc/license.txt.
 
4
 * </license> 
 
5
 */
 
6
class Base
 
7
{
 
8
        static public var a : Int = 0;
 
9
        public var b : Int;
 
10
}
 
11
 
 
12
class BrokenVisibility extends Base
 
13
{
 
14
        function main()
 
15
        {
 
16
                //Nicolas maintains that the visibility of a derived class will never include the
 
17
                //statics of the parent class.  So this can never work.
 
18
                trace( a );
 
19
                trace( b );
 
20
        }
 
21
}