mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We already reject attempts to reference this for `lazy` properties. For `lazy` locals let's just not expose it to name lookup to begin with. This ensures we don't attempt to prematurely kick the interface type computation for the var, fixing a couple of crashers.
4 lines
191 B
Swift
4 lines
191 B
Swift
// {"kind":"typecheck","signature":"swift::getParameterAt(swift::ConcreteDeclRef, unsigned int)"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
func a func b [{ lazy var c = a(d var e = b
|