mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
21 lines
326 B
D
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();
|
|
}
|