# Unions and macro methods

**URL:** https://forum.crystal-lang.org/t/unions-and-macro-methods/3243
**Category:** Help & Support
**Created:** [April 27, 2021, 7:21am UTC](https://forum.crystal-lang.org/t/unions-and-macro-methods/3243 "2021-04-27T07:21:40Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![straight-shoota](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/straight-shoota/32/36_2.png) [@straight-shoota](https://forum.crystal-lang.org/u/straight-shoota)
#### Post date: [April 28, 2021, 10:13am UTC](https://forum.crystal-lang.org/t/unions-and-macro-methods/3243/8 "2021-04-28T10:13:32Z")

</div>

Maybe the macro interpreter should error if `instance_vars` is not called as `@type.instance_vars`?

---

_[View the full topic](https://forum.crystal-lang.org/t/unions-and-macro-methods/3243)._
