-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
compilerIssues related to compilation & parsingIssues related to compilation & parsingenhancementNew feature or requestNew feature or request
Milestone
Description
Do not allow:
class A {
field: int
}
some_a: A? = A()
# This line can crash at runtime
some_a.field = 5
# Instead, allow this
(get some_a).field = 5
some_a!.field = 5 # if nil, will panic because there is nowhere to bubble
fn() -> int? {
some_a!.field = 5 # if nil, will return nil
return 70
}()
Metadata
Metadata
Assignees
Labels
compilerIssues related to compilation & parsingIssues related to compilation & parsingenhancementNew feature or requestNew feature or request