Ticket #214 (new defect)
Members use in preconditions on x mustn't be less visible than x.
Reported by: | nevdelap | Owned by: | |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
My lame example covers just one case. lame is less visible than meth, and so should fail to compile.
{{{class A
var lame as int is private
cue init
base.init
lame = #[something secretly computed inside A]
def meth
require
lame == 1
body
print "hello"
class P
def main
a = A()
a.meth}}}
Change History
Note: See
TracTickets for help on using
tickets.