summaryrefslogtreecommitdiff
path: root/tests/fastvapi/fastvapitest.vala
blob: 470c434e3df3f810096c90cabafca6479211ff0b (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
namespace FastVapi {
	public const int CONSTANT = 42;

	public enum EnumTest {
		VALUE
	}

	public errordomain ErrorTest {
		FAILED
	}

	public struct TestStruct {
		public int field_name;
	}

	public interface InterfaceTest : Object {
		public abstract int property { get; construct set; }
		public abstract void method (int param);
	}

	public delegate bool DelegateTest (int param);

	public class Test : Object {
		public signal void some_signal (int param);

		public int field;

		public weak Test weak_field;

		public string property { get; construct set; }

		public weak Test weak_property { get; private set; }

		public Test.sub () {
		}

		public void method () {
		}
	}

	public struct TestSubStruct : TestStruct {
		public static int static_field_name;
	}

	public const int CONSTANT_TWO = CONSTANT;

	public enum EnumTestTwo {
		VALUE = 3,
		VALUE_TWO = VALUE,
	}

	public class TestFundamental {
		private TestFundamental () {
		}
	}

	public abstract class AbstractTest {
	}
}