mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
15 lines
262 B
D
15 lines
262 B
D
// REQUIRED_ARGS: -o-
|
|
// PERMUTE_ARGS:
|
|
|
|
struct Foo
|
|
{
|
|
auto opAssign(this X)(ref typeof(this));
|
|
auto opAssign(this X, V)(ref V) if (!is(V == typeof(this)));
|
|
}
|
|
|
|
void test()
|
|
{
|
|
Foo src;
|
|
const(Foo) target;
|
|
static if (is(typeof(target = src))) {}
|
|
}
|