1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// extension-visibility-a.slang interface IThing { int getValue(); } // Note: not implementing the interface here! struct MyThing { int value; } int helper<T : IThing>(T thing) { return thing.getValue(); }