Show
Ignore:
Timestamp:
08/28/08 05:23:09 (4 months ago)
Author:
Chuck.Esterbrook
Message:

Test that the default type for vars, properties and method arguments is dynamic?

Files:
1 modified

Legend:

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

    r1593 r1596  
    11501150                        initExpr = nil 
    11511151                        if type is nil 
    1152                                 type = .typeProvider.dynamicType 
     1152                                type = .typeProvider.defaultType 
    11531153                docString = '' to ? 
    11541154                isNames = List<of String>(_isNamesStack) 
     
    13981398                        returnType = .typeId to ITypeProxy 
    13991399                else 
    1400                         returnType = _typeProvider.dynamicType 
     1400                        returnType = _typeProvider.defaultType 
    14011401                # TODO: implements? 
    14021402                hasIsNames = false 
     
    15281528                        returnType = .typeId to ITypeProxy 
    15291529                else 
    1530                         returnType = _typeProvider.dynamicType 
     1530                        returnType = _typeProvider.defaultType 
    15311531                # TODO: implements? 
    15321532                hasIsNames = false 
     
    16591659                        isMissingType = false 
    16601660                else 
    1661                         type = TypeProxy(_typeProvider.dynamicType)  # the default type for a parameter is dynamic 
     1661                        type = TypeProxy(_typeProvider.defaultType) 
    16621662                        isMissingType = true 
    16631663                # note: isTypeless is currently used to generate a warning in .paramDecls above, but in the future it may also be needed for when parameter types are inferred for anon methods