swift
1c9ed33f
- ensure you cannot discard a local called `self`
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
Commit
2 years ago
ensure you cannot discard a local called `self` previous checking for the expr being `self` was checking for the decl being named `self`. that meant you could do naughty things like: ``` let `self` = Self() discard `self` ``` rdar://109376381
References
#65931 - more `discard` fixes in Sema
Author
kavon
Parents
da9847a8
Loading