We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326d6f1 commit 374bdacCopy full SHA for 374bdac
Tests/SpyableMacroTests/Factories/UT_SpyFactory.swift
@@ -357,6 +357,29 @@ final class UT_SpyFactory: XCTestCase {
357
)
358
}
359
360
+ func testDeclarationExistentialVariable() throws {
361
+ try assertProtocol(
362
+ withDeclaration: """
363
+ protocol ServiceProtocol {
364
+ var data: any Codable { get set }
365
+ }
366
+ """,
367
+ expectingClassDeclaration: """
368
+ class ServiceProtocolSpy: ServiceProtocol {
369
+ var data: any Codable {
370
+ get {
371
+ underlyingData
372
373
+ set {
374
+ underlyingData = newValue
375
376
377
+ var underlyingData: (any Codable)!
378
379
+ """
380
+ )
381
382
+
383
func testDeclarationClosureVariable() throws {
384
try assertProtocol(
385
withDeclaration: """
0 commit comments