Files
swift-mirror/validation-test/compiler_crashers_fixed/getParameterAt-0771c5.swift
Hamish Knight 55ebd0774e [AST] Avoid exposing lazy local storage var to name lookup
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.
2025-10-25 15:07:11 +01:00

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