For some reason, @Generable type's memberwise init is not recognized in #Playground.
Environment:
Code to reproduce:
import AnyLanguageModel
import Playgrounds
@Generable
struct FooBar {
var foo: String
var bar: Int
}
let fooBar = FooBar(foo: "foo", bar: 0) // OK
func globalFunc() {
let fooBar = FooBar(foo: "foo", bar: 0) // OK
}
#Playground {
let fooBar = FooBar(foo: "foo", bar: 0) // Cannot convert value of type 'String' to expected argument type 'GeneratedContent'
}