feat: add object method parameter diagnostics
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
CLASS Player
|
||||
HAS score NUMBER
|
||||
|
||||
TEACH add points
|
||||
CHECK TYPE points IS NUMBER
|
||||
SET score score + points
|
||||
END
|
||||
END
|
||||
|
||||
NEW Player player
|
||||
DO player.add "five"
|
||||
Reference in New Issue
Block a user