Invalid default Directive for Static Property

Description

The property cannot be declared using both Shared and Default directives.

Troubleshooting Tips

Remove one of the directives from the property description.

Example

Class TestClass: Object
    i: Integer;
    Shared Property Item(i: Integer): Integer
        Get
        Begin
            Return i;
        End Get
        Set
        Begin
            i := Value
        End Set
    End Property Item; Default;
End Class TestClass;

When the specified code is compiled, the following error is displayed: Invalid default directive for static property. To resolve the error, remove the Shared or Default directives from the property description.

See also:

Compiler Messages