Debian Codegraph @

tests/indent/d.d

raw
1 import std.stdio;
2
3 struct Point {
4 int x;
5 int y;
6 }
7
8 void main() {
9 auto values = [1, 2, 3];
10 foreach (v; values) {
11 if (v > 1) {
12 writeln(v);
13 } else {
14 writeln("small");
15 }
16 }
17 }