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:
@@ -0,0 +1,12 @@
|
||||
# Here's a complex test case inspired by bug 244
|
||||
socrates:
|
||||
x: 100
|
||||
y: 1000
|
||||
plato:
|
||||
y: 2000
|
||||
aristotle:
|
||||
extends:
|
||||
- socrates
|
||||
- plato
|
||||
x: += 0.1in # 0.1in -> 30.0, so 100 + 30 = 130.0
|
||||
y: += 18 # From Plato, 2000 + 18
|
||||
@@ -0,0 +1,9 @@
|
||||
socrates:
|
||||
x: 100
|
||||
plato:
|
||||
x: 200
|
||||
aristotle:
|
||||
extends:
|
||||
- socrates
|
||||
- plato
|
||||
x: += 50 # evaluates to 250 from plato
|
||||
@@ -0,0 +1,9 @@
|
||||
socrates:
|
||||
x: 100
|
||||
plato:
|
||||
y: 200
|
||||
aristotle:
|
||||
extends:
|
||||
- socrates
|
||||
- plato
|
||||
x: += 50 # evaluates to 150 from socrates
|
||||
Reference in New Issue
Block a user