Add type flags support for Ty
and Const
late-bound variables
#105733
Merged
Ty
and Const
late-bound variables
#105733