typealias-indirect-reference.azsl 843 B

1234567891011121314151617181920212223242526272829303132333435
  1. class Scope
  2. {
  3. typealias Bateau = float;
  4. Bateau m_intensity;
  5. };
  6. void Func()
  7. {
  8. typealias Barque = Scope::Bateau;
  9. //vector<Barque,3> color; // [TODO-GFX][ATOM-2228] syntax fail for now
  10. Barque r,g,b;
  11. }
  12. typedef typeof(Func)::Barque Raft; // check out README.md for the change incurred here by release 1.5
  13. class C
  14. {
  15. typedef Raft Flottant;
  16. void M()
  17. {
  18. //matrix<Flottant,1,2> mm; // [TODO-GFX][ATOM-2228]
  19. Flottant mm11,mm12;
  20. __azslc_print_message("@check predicate ");
  21. __azslc_print_symbol(typeof(Flottant), __azslc_prtsym_fully_qualified);
  22. __azslc_print_message(" == '?float'\n");
  23. __azslc_print_message("@check predicate ");
  24. __azslc_print_symbol(typeof(mm11), __azslc_prtsym_fully_qualified);
  25. __azslc_print_message(" == '?float'\n");
  26. }
  27. };