1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// extension-import.slang // Confirm that visibility of extensions through `import` is working. //TEST:SIMPLE: import extension_import_helper; float test<T : IThing>(T value) { return value.getValue(); } float id(float x) { return test(x); }