[swift-users] Lazy expression is ambiguous?
Rick Mann
rmann at latencyzero.com
Mon Sep 12 00:19:02 CDT 2016
I get this error in the following code: "Type of expression is ambiguous without more context", on the DispatchQueue. But only if I mark it as "lazy", and not if I don't. I'm not sure why.
class
myClass
{
lazy var myQ = DispatchQueue(label: "Op", attributes: .concurrent) // <-- ERROR
^Type of expression is ambiguous without more context
}
Would someone please explain? Thank you.
--
Rick Mann
rmann at latencyzero.com
More information about the swift-users
mailing list