Why can nameof not be used with alias-qualified types at the root level?
Answer to underlying question if you came here for compile-time desision – there is no way at this moment. It is an expected behavior from compilator side as result of expression compilation. Quick runtime solution (typeof(f::SomeCustomClassName)).Name instead of nameof(f::SomeCustomClassName) Explanation Now lets see again to nameof_expression (link) nameof_expression = ‘nameof’ ‘(‘ named_entity ‘)’ where named_entity … Read more