Fix for #1901: Make sure when we are resolved or not
Test for #1901: Alias used as type parameter : compiler error