main()1 void main() 2 { 3 ubyte from, to; 4 foreach(i; from..to) 5 { 6 static assert(is(typeof(i) == ubyte)); 7 } 8 foreach(i; 'a'..'l') 9 { 10 static assert(is(typeof(i) == char)); 11 } 12 foreach(i; 'א' .. 'ת') 13 { 14 static assert(is(typeof(i) == wchar)); 15 } 16 } 17