summaryrefslogtreecommitdiff
path: root/tests/objects/property-construct-only-write-foreign.test
blob: 4ec5be7fff2b8490c047e9d839309198a7ceb627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Invalid Code

class Foo : GLib.Object {
	public string test { construct; }
	public Foo () {
		var other = new Foo.ok ();
		other.test = "";
	}

	public Foo.ok () {
	}
}

void main () {
	var foo = new Foo ();
}