summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/using_private_runme.m
blob: 3ac71dbf964caf4b08b09554816d156743c7715a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using_private

f = FooBar();
f.x = 3;

if (f.blah(4) != 4)
    error, "blah(int)"
endif

if (f.defaulted() != -1)
    error, "defaulted()"
endif

if (f.defaulted(222) != 222)
    error, "defaulted(222)"
endif