[Gambas-bugtracker] Bug #1646: New `Property Use` does not work in modules

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Thu Sep 5 14:34:18 CEST 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1646&from=L21haW4-

Tobias BOEGE reported a new bug.

Summary
-------

New `Property Use` does not work in modules

Type             : Bug
Priority         : Low
Gambas version   : Master
Product          : Language


Description
-----------

On master, the following code using the new syntactic sugar for property declarations
**inside of a module**

  Property Test As Integer Use $iTest

results in the error "Test_Write must be static".

I think the compiler should check the staticness of the class being compiled and either

  - silently do what is being requested by making the accessor Static, or
  - refuse to do this slightly non-sensical thing and add a nice error message
    suggesting to use a Public variable instead (because that is what it
    effectively is).


System information
------------------

-




More information about the Bugtracker mailing list