Wiki
Show
Ignore:
Timestamp:
03/03/10 06:00:51 (2 years ago)
Author:
Chuck.Esterbrook
Message:

When using attribute "Foo", look for "FooAttribute?" first. This reduces collisions of symbols.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Tests/320-misc-two/800-attributes/100-attributes.cobra

    r2160 r2298  
    251251 
    252252    pass 
     253 
     254 
     255class TestAttribute inherits Attribute 
     256 
     257    pass 
     258 
     259 
     260class UseTestAttribute 
     261 
     262    def foo has Test  # `Test` is also a namespace in Cobra.Lang, but the attribute "TestAttribute" takes precedence 
     263        pass