#41: GlobalMembersVisitor - Visit(GlobalVariableChunk chunk)
-------------------------------+--------------------------------------------
Reporter: sharpoverride | Owner:
Type: defect | Status: new
Priority: trivial | Component: Spark Core
Keywords: global const types |
-------------------------------+--------------------------------------------
By default this generates
[type] _[var_name] = [value_given]
public [type] [var_name] {{ get{ return _[var_name] ;} set { _[var_name] =
value; }}
So when we write something like :
<global type="const int" extraPadding="0" />
the generated code throws a compile error since constant variables require
a value to be given to them and no property.
This can be regarded as a special case and create a constant field
generator or a simple check for this case could also suffice.
Error was found on Head Revision 90 from trunk
--
Ticket URL: <
http://dev.dejardin.org/trac/spark/ticket/41>
Spark View Engine <
http://dev.dejardin.org/trac/spark>
Spark View Engine