dmd/compiler/test/compilable/dip22.d
2022-07-09 18:53:07 +02:00

21 lines
326 B
D

// REQUIRED_ARGS: -de
// EXTRA_FILES: imports/dip22.d
import imports.dip22;
class Foo : Base1, Base2
{
void test()
{
static assert(typeof(bar()).sizeof == 2);
static assert(baz == 2);
static assert(T.sizeof == 2);
}
}
void test()
{
bar(12);
baz(12);
12.bar();
12.baz();
}