| 1 |
// https://issues.dlang.org/show_bug.cgi?id=21719 |
| 2 |
|
| 3 |
struct S |
| 4 |
{ |
| 5 |
auto f() |
| 6 |
{ |
| 7 |
} // inferred to be @safe @nogc pure nothrow |
| 8 |
} |
| 9 |
|
| 10 |
class C |
| 11 |
{ |
| 12 |
auto f() // should also infer the same attributes |
| 13 |
{ |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
pure @nogc nothrow @safe void test(S s, C c) |
| 18 |
{ |
| 19 |
s.f; |
| 20 |
c.f; |
| 21 |
} |