mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
259 B
D
16 lines
259 B
D
void main()
|
|
{
|
|
ubyte from, to;
|
|
foreach(i; from..to)
|
|
{
|
|
static assert(is(typeof(i) == ubyte));
|
|
}
|
|
foreach(i; 'a'..'l')
|
|
{
|
|
static assert(is(typeof(i) == char));
|
|
}
|
|
foreach(i; 'א' .. 'ת')
|
|
{
|
|
static assert(is(typeof(i) == wchar));
|
|
}
|
|
}
|