catala/tests/test_scope/sub_scope.catala
2020-12-06 18:09:48 +01:00

25 lines
358 B
Plaintext

@Article@
/*
new scope A:
param a content int
param b content bool
param a_base content int
new scope B:
param a content int
param b content bool
param scopeA scope A
param scopeAbis scope A
scope A:
def a_base := 1
def a := -1
def b := a > 0
scope B:
def a := 42
def b := scopeA.b
def scopeA.a [ a > 0 ] := scopeAbis.a_base
*/