summaryrefslogtreecommitdiff
path: root/tests/test-025.vala
blob: 2d83913e7d82d85aae4c445b42f1e4d522aebee0 (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
using GLib;

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

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

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

		base.do_action ();

		stdout.printf (" 4");
	}

	static int main (string[] args) {
		stdout.printf ("Base Access Test: 1");

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

		return 0;
	}
}