mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
29 lines
326 B
D
29 lines
326 B
D
// https://issues.dlang.org/show_bug.cgi?id=6999: inout in front of return type
|
|
|
|
struct A
|
|
{
|
|
inout:
|
|
inout(int) foo()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
struct B
|
|
{
|
|
inout
|
|
{
|
|
inout(int) foo()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
struct C
|
|
{
|
|
inout inout(int) foo()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|