remove obsolete ref modifier and callback keyword
[vala-lang.git] / tests / test-023.vala
blob605f1b5cfdefeb5e34b604d01e5c22d2fa00d7c8
1 using GLib;
3 class Maman.Foo {
4 public void run () {
5 foreach (string s in create_list ()) {
6 stdout.printf (" %s", s);
10 public List<string> create_list () {
11 var s = new List<string>();
13 s.append ("2");
14 s.append ("3");
16 return s;
19 static int main (string[] args) {
20 stdout.printf ("List construction: 1");
22 var foo = new Foo ();
23 foo.run ();
25 stdout.printf (" 4\n");
27 return 0;