mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
23 lines
495 B
D
23 lines
495 B
D
/**
|
|
REQUIRED_ARGS: -de
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ctor_self_assignment.d(17): Deprecation: cannot initialize field `location` with itself
|
|
fail_compilation/ctor_self_assignment.d(15): did you mean to use parameter `locaction`?
|
|
---
|
|
*/
|
|
// https://forum.dlang.org/post/teghfhpmvkdcfwfeovua@forum.dlang.org
|
|
|
|
alias Location = int;
|
|
|
|
struct Node
|
|
{
|
|
this(Location locaction, uint f)
|
|
{
|
|
this.location = location;
|
|
this.f = f;
|
|
}
|
|
|
|
Location location;
|
|
uint f;
|
|
}
|