summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/vala/70000-list.vala
blob: 1893dcb5c8f6418b031cec0a8ec29ab2f65078ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22


using GLib;

public class GListTest : Object
{
   public GListTest { }

   static int main(string[] args)
   {
      List<string> list;
      list.append("TestString1");
      list.append("myTest");
      message("list.length()=%d", list.length());

      for (int i = 0; i < list.length(); i++)
      {
         string list2 = list.nth_data(i);
         message("%s", list2);
      }
   }
}