mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
21 lines
279 B
D
21 lines
279 B
D
// https://issues.dlang.org/show_bug.cgi?id=21719
|
|
|
|
struct S
|
|
{
|
|
auto f()
|
|
{
|
|
} // inferred to be @safe @nogc pure nothrow
|
|
}
|
|
|
|
class C
|
|
{
|
|
auto f() // should also infer the same attributes
|
|
{
|
|
}
|
|
}
|
|
|
|
pure @nogc nothrow @safe void test(S s, C c)
|
|
{
|
|
s.f;
|
|
c.f;
|
|
}
|