diff options
| author | Yong He <yonghe@outlook.com> | 2018-01-09 10:50:44 -0800 |
|---|---|---|
| committer | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-01-09 10:50:44 -0800 |
| commit | 8daafcc2e4bf7b2dfb66d7a3b7ac60c86b2d926c (patch) | |
| tree | b7fac301e3c4d1b006af70584feeb45af191aab6 /tests/compute/assoctype-simple.slang | |
| parent | 3d435f7321c3f9241d33a0f7521573f21b548186 (diff) | |
bruteforce implementation of witness table resolution for associated (#358)
Diffstat (limited to 'tests/compute/assoctype-simple.slang')
| -rw-r--r-- | tests/compute/assoctype-simple.slang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/compute/assoctype-simple.slang b/tests/compute/assoctype-simple.slang index 0f160c9c0..b14529064 100644 --- a/tests/compute/assoctype-simple.slang +++ b/tests/compute/assoctype-simple.slang @@ -8,13 +8,13 @@ RWStructuredBuffer<float> outputBuffer; interface ISimple { associatedtype U; - U add(U v0, U v1); + U addt(U v0, U v1); } struct Simple : ISimple { typedef float U; - U add(U v0, float v1) + U addt(U v0, float v1) { return v0 + v1; } @@ -23,7 +23,7 @@ struct Simple : ISimple __generic<T:ISimple> T.U test(T simple, T.U v0, T.U v1) { - return simple.add(v0, v1); + return simple.addt(v0, v1); } [numthreads(4, 1, 1)] |
