summaryrefslogtreecommitdiff
path: root/graphics/asymptote/tests/template/imports/wrapperWithEquals.asy
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-02-28 03:01:23 +0000
committerNorbert Preining <norbert@preining.info>2024-02-28 03:01:23 +0000
commit0afdc3e8c2d8e96d0cd0a5f05f1481a4eecc51d2 (patch)
tree805f2acf8e0115574bc5781d1dfb87fbe2e63ba8 /graphics/asymptote/tests/template/imports/wrapperWithEquals.asy
parenta64a01e8eaa2c096e7879421f075ebfa2a8bb7f0 (diff)
CTAN sync 202402280301
Diffstat (limited to 'graphics/asymptote/tests/template/imports/wrapperWithEquals.asy')
-rw-r--r--graphics/asymptote/tests/template/imports/wrapperWithEquals.asy11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/asymptote/tests/template/imports/wrapperWithEquals.asy b/graphics/asymptote/tests/template/imports/wrapperWithEquals.asy
new file mode 100644
index 0000000000..0423112e65
--- /dev/null
+++ b/graphics/asymptote/tests/template/imports/wrapperWithEquals.asy
@@ -0,0 +1,11 @@
+typedef import(T);
+
+access "template/imports/wrapper"(T=T) as wrapper;
+unravel wrapper;
+
+bool operator == (Wrapper_T a, Wrapper_T b) {
+ return a.t == b.t;
+}
+bool operator != (Wrapper_T a, Wrapper_T b) {
+ return a.t != b.t;
+} \ No newline at end of file