Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8904
Invalid variance: The type parameter '{1}' must be {3} valid on '{0}' unless language version '{4}' or greater is used. '{1}' is {2}.