mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 05:30:13 +03:00
16 lines
210 B
D
16 lines
210 B
D
// https://issues.dlang.org/show_bug.cgi?id=21073
|
|
|
|
class C
|
|
{
|
|
auto internal() const
|
|
{
|
|
return 5;
|
|
}
|
|
alias internal this;
|
|
}
|
|
|
|
void main() pure
|
|
{
|
|
const c = new C;
|
|
auto r = cast(C)c;
|
|
}
|