Closed JSAbrahams closed 2 years ago
class Y(def a: Float) class X def y: Y def init(self, a: Float) => self.y := Y(a) def x := X(10) x.y.a := x.y.a + 2 x.y.a := x.y.a - 3 x.y.a := x.y.a * 6 x.y.a := x.y.a / 7 x.y.a := x.y.a ^ 2 x.y.a := x.y.a << 10
Gives an error that the type checker does not recognize x.y.a
x.y.a
It should treat x.y.a as a Float in the above example.
Float
Likely need to add more generation logic to fully check the above expression.
Description of Bug
How to Reproduce
Gives an error that the type checker does not recognize
x.y.a
Expected behavior
It should treat
x.y.a
as aFloat
in the above example.Likely need to add more generation logic to fully check the above expression.