x = loadResource(Rez.Fonts.J1); //no compile error but of course run time error, compiler should check if J1 is in Rez.Fonts.
x = loadResource(Rez.Fonts.onLayout); //no compile error but of course run time error, there is view.onLayout(), so there is symbol - compiler should check if onLayout is in Rez.Fonts.
x = loadResource(Rez.Fonts.NoRes); //compile error because no such symbol at all
x = loadResource(Rez.Fonts.J1); //no compile error but of course run time error, compiler should check if J1 is in Rez.Fonts.
x = loadResource(Rez.Fonts.onLayout); //no compile error but of course run time error, there is view.onLayout(), so there is symbol - compiler should check if onLayout is in Rez.Fonts.
x = loadResource(Rez.Fonts.NoRes); //compile error because no such symbol at all