Odin icon indicating copy to clipboard operation
Odin copied to clipboard

Foo(123) on Foo($T: typeid) :: struct - assertion failure

Open awwdev opened this issue 3 years ago • 2 comments

Odin dev-2021-09:b3dc3f59

Foo :: struct($T: typeid) {}
foo: Foo(123)

Odin\src\types.cpp(2906): Assertion Failure: is_type_typed(t)

awwdev avatar Sep 21 '21 08:09 awwdev

Hello!

I am marking this issue as stale as it has not received any engagement from the community or maintainers 120 days. That does not imply that the issue has no merit! If you feel strongly about this issue

  • open a PR referencing and resolving the issue;
  • leave a comment on it and discuss ideas how you could contribute towards resolving it;
  • leave a comment and describe in detail why this issue is critical for your use case;
  • open a new issue with updated details and a plan on resolving the issue.

The motivation for this automation is to help prioritize issues in the backlog and not ignore, reject, or belittle anyone..

github-actions[bot] avatar Jul 24 '22 21:07 github-actions[bot]

Still happens on version dev-2022-09:98420192

src/types.cpp(3419): Assertion Failure: is_type_typed(t)

Additional note: Same compiler assertion with foo: Foo(nil).

awwdev avatar Sep 17 '22 08:09 awwdev

Closing this Issue because it's fixed. 👍 Tested with 2d699fd13bb4bb15e9a36b0b1fe44d274b538f3e.

test.odin(13:10) Expected a type for the argument 'T', got 123
        foo: Foo(123)
                 ^~^
test.odin(13:6) 'Foo(123)' is not a type
        foo: Foo(123)
             ^~~~~~~^

awwdev avatar Apr 20 '23 07:04 awwdev