Changeset 1601

Show
Ignore:
Timestamp:
08/28/08 07:10:29 (3 months ago)
Author:
Chuck.Esterbrook
Message:

Fix a bug in extended initializer calls that contain 'nil'.
The real bug was that NilType? did not provide a "get sharpRef".

Location:
cobra/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/Types.cobra

    r1596 r1601  
    16441644                return 'null' 
    16451645 
     1646        get sharpRef as String is override 
     1647                return '/*nil*/object' 
     1648 
    16461649 
    16471650class NumberType 
     
    16941697 
    16951698        get sharpRef as String is override 
    1696                 return 'object/*passthrough*/' 
     1699                return '/*passthrough*/object' 
    16971700 
    16981701 
  • cobra/trunk/Tests/120-classes/320-construct-prop-set.cobra

    r1598 r1601  
    1515                assert s.b == 'b' 
    1616 
     17                s = Stuff(nil, b='b') 
     18                assert s.a is nil 
     19                assert s.b == 'b' 
    1720 
    1821class Stuff