Direct assignment to arrays of inherited classes does not work

We have a class that inherits from the integer class [], we call
SuperInteger, this is your code:
Inherits Integer []

Public function  higher() as integer
dim itemt as integer
dim ihigher as integer

for each element in me
ihigher = max (ihigher, item)
next

return ihigher

end


When I make an instance of the new :

dim test as new SuperInteger


It does not work this assignment:
test = [86, 16, 212, 1, 43, 18]

gambas3 says it's not the same type.
Should I working? Right?


Regards

Julio
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to