mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
22 lines
261 B
D
22 lines
261 B
D
// https://issues.dlang.org/show_bug.cgi?id=20236
|
|
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
---
|
|
*/
|
|
|
|
struct X
|
|
{
|
|
alias y this;
|
|
deprecated int y() { return 5; }
|
|
int x() { return 5; }
|
|
}
|
|
|
|
void main()
|
|
{
|
|
static void func(int) {}
|
|
with(X.init) {
|
|
func(x);
|
|
}
|
|
}
|