mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
17 lines
319 B
D
17 lines
319 B
D
// REQUIRED_ARGS: -o-
|
|
// https://issues.dlang.org/show_bug.cgi?id=23979
|
|
// Issue 23979 - ICE on failed alias this attempt on pointer expression
|
|
|
|
class A {}
|
|
|
|
void h()
|
|
{
|
|
const auto classPtr = SPtr.init;
|
|
assert(!__traits(compiles, *classPtr));
|
|
}
|
|
|
|
struct SPtr
|
|
{
|
|
A ptr() { return A.init; }
|
|
alias ptr this;
|
|
}
|