summaryrefslogtreecommitdiff
path: root/graphics/asymptote/tests/template/initTest.asy
blob: 7def2791387d3f5d6635f8e944393ca7dff14039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
access "template/imports/A"(T=int) as a;
unravel a;
access "template/imports/B"(T=A) as b;
unravel b;

import TestLib;

StartTest("init");
A c;
EndTest();

StartTest("new");
struct X {
  struct A {
    int x=1;
  }
}

X x;

access "template/imports/C"(T=x.A) as p;

EndTest();