Navigation: X# Documentation > X# Compiler Errors and Warnings
Warning XS0402
'{0}': an entry point cannot be generic or in a generic type