Ticket #354 (closed defect: fixed)
Shared protected var is not visible to subclass if base class is defined in reference
Reported by: | nerdzero | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.6 |
Keywords: | reference, inheritance | Cc: |
Description
Cobra svn:3097 (post 0.9.6) / 2014-01-13 on Mono 3.2.7 CLR v4.0.30319 on Ubuntu 13.10
The following snippet compiles without issue.
@args -t:lib class Foo shared var _bar = 1 class Bar inherits Foo def testing print _bar
This next one fails with the following message: error: For "print" arg 1: Cannot find "_bar".
@ref "Foo.dll" class Program inherits Foo def main print _bar
Shared variables with protected accessibility are not visible to subclasses if the base class is defined in a referenced assembly.
Change History
Note: See
TracTickets for help on using
tickets.