Ticket #259 (closed defect: fixed)
Cannot access protected "method" in "_var" whose type is "Clazz<of T>"
Reported by: | blubb | Owned by: | Chuck |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | |
Keywords: | Cc: |
Description
It seems there is some problem with protected methods in generic classes:
test.cobra:
class Clazz<of T>
var _var as Clazz<of T>
def method is protected
_var.method
class Program
def main
Clazz<of String>()
$ ./cobra -c test.cobra
test.cobra(6): error: Cannot access protected "method" in "_var" whose type is "Clazz<of T>".
Compilation failed - 1 error, 0 warnings
Change History
Note: See
TracTickets for help on using
tickets.