aboutsummaryrefslogtreecommitdiff
path: root/ql/test/semantic_analysis/valid/test006.ql
diff options
context:
space:
mode:
Diffstat (limited to 'ql/test/semantic_analysis/valid/test006.ql')
-rw-r--r--ql/test/semantic_analysis/valid/test006.ql13
1 files changed, 13 insertions, 0 deletions
diff --git a/ql/test/semantic_analysis/valid/test006.ql b/ql/test/semantic_analysis/valid/test006.ql
new file mode 100644
index 0000000..855332e
--- /dev/null
+++ b/ql/test/semantic_analysis/valid/test006.ql
@@ -0,0 +1,13 @@
+// Identifier reference in nested computed question
+form testForm {
+ "First Question"
+ firstCondition : boolean
+ "Second Question"
+ firstInteger : integer
+ if (firstCondition) {
+ "Third Question"
+ anotherIdentifier : integer
+ "Fourth Question"
+ yetAnotherIdentifier : integer = firstInteger + 1
+ }
+} \ No newline at end of file