Unresolved identifier 'Post' error

With the playground for Cookbook Challenge 2
I am receiving an error for this line:
let post = Post(author: “an old friend”, title: “an old friend”)
of
Use of unresolved identifier ‘Post’

Does anyone else receive this error???

Thanks

@csharpusa Thanks very much for your question! Have you declared the class/struct “Post” prior to that line? If you have not, then it will declare an error because it can’t find it.

This topic was automatically closed after 166 days. New replies are no longer allowed.