Ticket #102 (new defect)

Opened 1 year ago

"protected" is not implemented

Reported by: lth Assigned to: anonymous
Type: defect Priority: major
Milestone: Component: RefImpl
Version: 4 Keywords:
Cc: jeffdyer

Description

Consider:

class C {
    protected var v = 10;
}
class D extends C {
    function f() {
        print(v);
    }
}
(new D).f()

Loading this results in an error:

[locn] builtins/Error.es:83.47-83.47
[stack] [f()]
**ERROR** EvalError: uncaught exception:
  ReferenceError: unresolved lexical reference
  {multiname: [ns private '[ns public '']::D ']::v
              [ns public '']::v
              [ns internal '']::v }
  (near builtins/Error.es:83.47-83.47)

Attachments

Note: See TracTickets for help on using tickets.