Layout multiple inheritance works with operators

The case of using relative operators and multiple inheritance is handled now.

Fixes #244
This commit is contained in:
Andy Meneely
2018-07-31 15:07:33 -04:00
parent 3d1f1ff989
commit 248eb2fb91
7 changed files with 108 additions and 14 deletions
+2 -1
View File
@@ -169,7 +169,8 @@ If you want to extend multiple parents, it looks like this::
extends:
- socrates
- plato
x: += 50 # evaluates to 250 from plato
x: += 50 # evaluates to 150 from socrates
# y is going to be 200 too from Plato
If multiple keys override the same keys in a parent, the later ("younger") child in the ``extends`` list takes precedent. Like this::