Sign in
fuchsia
/
third_party
/
swift
/
1862c95a58d6461091e849224696b3e35cd13dcf
/
.
/
test
/
decl
/
var
/
lazy_self_capture.swift
blob: 8d1a48e9fdc9ca94b8eedeab835229e58d707d14 [
file
] [
log
] [
blame
]
// RUN: %target-typecheck-verify-swift -parse-as-library
// This test case must be in a file with no other errors, otherwise we won't
// compute caputures.
class
C
{
lazy
var
foo
:
String
=
{
return
self
.
x
}()
let
x
=
"hi"
}