dmd/compiler/test/runnable/test17968.d
2022-07-09 18:53:07 +02:00

18 lines
310 B
D

/*
COMPILE_SEPARATELY:
EXTRA_SOURCES: imports/test17968a.d
PERMUTE_ARGS:
*/
import imports.test17968a;
void main()
{
auto r = fun2.fun1;
// just check that getHash works (doesn't throw).
typeid(r).getHash(&r);
// try gethash when member is null.
r.t = null;
typeid(r).getHash(&r);
}