mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
11 lines
214 B
D
11 lines
214 B
D
// REQUIRED_ARGS: -preview=dip1000 -preview=fieldwise
|
|
// EXTRA_FILES: imports/impfieldwise.d
|
|
|
|
import imports.impfieldwise;
|
|
|
|
@safe:
|
|
|
|
bool test(S s, S t)
|
|
{
|
|
return s == t; // comparison can access fields for ==
|
|
}
|