summaryrefslogtreecommitdiff
path: root/tests/objects/test-026.vala
blob: 154efadb1d0b68d8965b410cc97eba3dffbf2a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using GLib;

class Maman.Bar : Object {
	public void do_action () {
		stdout.printf (" 3");
	}
}

class Maman.SubBar : Bar {
	public void do_action () {
		stdout.printf (" BAD");
	}

	public void run () {
		stdout.printf (" 2");

		base.do_action ();

		stdout.printf (" 4");
	}

	public static int main () {
		stdout.printf ("Hidden Base Method Access Test: 1");

		var bar = new SubBar ();
		bar.run ();
	
		stdout.printf (" 5\n");

		return 0;
	}
}

void main () {
	Maman.SubBar.main ();
}