Closed JSAbrahams closed 2 years ago
Type annotation in class definitions are not preserved, it seems anyway. This isn't a breaking feature, and the type checker does appear to work correctly (as though it is actually annotated). So it really is something with the generation stage.
class X(def a: Float)
is converted to:
class X: def __init__(self, a): self.a = a
False alarm
Description of Bug
Type annotation in class definitions are not preserved, it seems anyway. This isn't a breaking feature, and the type checker does appear to work correctly (as though it is actually annotated). So it really is something with the generation stage.
How to Reproduce
is converted to: