better field initialization check #35

Open
opened 2021-09-28 17:19:36 +08:00 by pca006132 · 1 comment
There is no content yet.
ychenfo was assigned by pca006132 2021-09-28 17:19:47 +08:00

Example problematic code:

@nac3
class A:
  a: int32
  b: int32
  
  @kernel
  def __init__(self):
    self.a = self.b
    self.b = 123
Example problematic code: ```python @nac3 class A: a: int32 b: int32 @kernel def __init__(self): self.a = self.b self.b = 123 ```
sb10q added this to the Alpha milestone 2022-03-31 10:35:32 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#35
There is no content yet.