\tl_new:N \g_example_tl \cs_new_protected:Nn \example: { \tl_set:Nn \g_example_tl % error on this line { foo } }