# Compiler doesn't pass protocol conformance data

**URL:** <https://forums.swift.org/t/compiler-doesnt-pass-protocol-conformance-data/69656>\
**Category:** Compiler\
**Tags:** bug, macros, attached-macros\
**Created:** [January 26, 2024, 7:12pm UTC](https://forums.swift.org/t/compiler-doesnt-pass-protocol-conformance-data/69656 "2024-01-26T19:12:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumyamahunt](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/soumyamahunt/32/23427_2.png) [@soumyamahunt](https://forums.swift.org/u/soumyamahunt)\
**Post date:** [January 26, 2024, 7:12pm UTC](https://forums.swift.org/t/compiler-doesnt-pass-protocol-conformance-data/69656/1 "2024-01-26T19:12:12Z")

</div>

Hi, I have developed [`MetaCodable`](https://github.com/SwiftyLab/MetaCodable), a library that generates `Codable` conformance implementation. Recently [one issue got reported](https://github.com/SwiftyLab/MetaCodable/issues/56), debugging which I found out compiler isn't passing protocol conformance data to macro with some lines present.

The issue can be reproduced with [this sample project](https://github.com/ashleydw/metacodable-min-ex), and removing following lines resolves the issue:

> <https://github.com/ashleydw/metacodable-min-ex/blob/c0bd383995ca3c12938f704b79429e2c9c7b0c9b/test/ContentView.swift#L6>

> <https://github.com/ashleydw/metacodable-min-ex/blob/c0bd383995ca3c12938f704b79429e2c9c7b0c9b/test/ContentView.swift#L11-L18>

> <https://github.com/ashleydw/metacodable-min-ex/blob/c0bd383995ca3c12938f704b79429e2c9c7b0c9b/test/ContentView.swift#L50>

> <https://github.com/ashleydw/metacodable-min-ex/blob/c0bd383995ca3c12938f704b79429e2c9c7b0c9b/test/ContentView.swift#L58>

I am quite not sure why with these lines present compiler not passing the protocol conformance data, any help will be appreciated.
