Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Somehow, creating the `FieldType` as a type messes with the macros used in `NimYAML`. Inline `GetFieldType` to avoid the problem. status-im/nimbus-eth2#5043 (comment) ``` ./nimbus-eth2/tests/consensus_spec/test_fixture_light_client_sync.nim(126, 8) template/generic instantiation of `test` from here ./nimbus-eth2/tests/consensus_spec/test_fixture_light_client_sync.nim(146, 20) template/generic instantiation of `load` from here ./nimbus-eth2/vendor/NimYAML/yaml/serialization.nim(1368, 14) template/generic instantiation of `construct` from here ./nimbus-eth2/vendor/NimYAML/yaml/serialization.nim(1343, 19) template/generic instantiation of `constructChild` from here ./nimbus-eth2/vendor/NimYAML/yaml/serialization.nim(1168, 20) template/generic instantiation of `constructObject` from here ./nimbus-eth2/vendor/NimYAML/yaml/serialization.nim(927, 25) template/generic instantiation of `constructObjectDefault` from here ./nimbus-eth2/vendor/NimYAML/yaml/serialization.nim(921, 31) template/generic instantiation of `ensureAllFieldsPresent` from here ./nimbus-eth2/vendor/NimYAML/yaml/serialization.nim(681, 29) Error: type mismatch: got <NimNode> but expected one of: proc none(T: typedesc): Option[T] first type mismatch at position: 1 required type for T: typedesc but expression 'nil' is of type: NimNode proc none[T](): Option[T] first type mismatch at position: 1 extra argument given template none(O: type Opt; T: type): Opt[T] first type mismatch at position: 1 required type for O: typedesc[Opt] but expression 'nil' is of type: NimNode expression: none(nil) make: *** [consensus_spec_tests_minimal] Error 1 ```
- Loading branch information