Correct resolution of inherited default members on external interfaces
[boo.git] / tests / testcases / errors / BCE0120-3.boo
blob6b4dcb0725feff6f5ee7e00aa74ea9d48706ef4b
1 """
2 BCE0120-3.boo(24,7): BCE0120: 'NS2.Foo.get_C' is inaccessible due to its protection level.
3 BCE0120-3.boo(25,7): BCE0120: 'NS2.Foo.get_D' is inaccessible due to its protection level.
4 BCE0120-3.boo(26,3): BCE0120: 'NS2.Foo.D' is inaccessible due to its protection level.
5 """
6 namespace NS2
8 class Foo:
9 protected C:
10 get:
11 return "a string"
13 private D:
14 get:
15 return 1
16 set:
17 pass
19 class Bar(Foo):
20 def constructor():
21 print self.C
23 f = Foo()
24 print f.C
25 print f.D
26 f.D = 2