add test case for

Issue 5978 - ICE(mtype.c) when calling __traits(parent) on the child of an anonymous function.