type hint like "String?" ... #12574
Closed
charlesw1234
started this conversation in
Scripting
Replies: 2 comments
-
See #162 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the proposal! Consolidating in #162. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
there is: var json_body = JSON.parse_string(...),but a field , such as "avatar", is json null, so:
var avatar: String = json_body.get("avatar", "") will be failed.
add: var avatar: String? = json_body.get("avatar", "") is refused by studio.
I have noticed that: var Node = null is work, but why var avatar: String = null do not work?
Beta Was this translation helpful? Give feedback.
All reactions