diff options
Diffstat (limited to 'graphics/asymptote/tests/template/imports/wrapper.asy')
-rw-r--r-- | graphics/asymptote/tests/template/imports/wrapper.asy | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/asymptote/tests/template/imports/wrapper.asy b/graphics/asymptote/tests/template/imports/wrapper.asy new file mode 100644 index 0000000000..1e44cdd793 --- /dev/null +++ b/graphics/asymptote/tests/template/imports/wrapper.asy @@ -0,0 +1,12 @@ +typedef import(T); + +struct Wrapper_T { + T t; + void operator init(T t) { + this.t = t; + } +} + +Wrapper_T wrap(T t) { + return Wrapper_T(t); +}
\ No newline at end of file |