You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only difference is the type hint: c: C
When the type hint is added, the following error is thrown:
File "/Users/dunfanlu/Code/Taichi/taichi/python/taichi/lang/kernel_impl.py", line 341, in extract_arguments
raise TaichiSyntaxError(
taichi.lang.exception.TaichiSyntaxError: Invalid type annotation (argument 0) of Taichi function: <taichi.lang.struct.StructType object at 0x10875e220>
The text was updated successfully, but these errors were encountered:
Issue: fix#6855
### Brief Summary
Note that this PR is a quick hack to allow the type hint but doesn't
check invalid cases. We would like to wait for the upcoming new struct
type representation to officially support struct type as kernel/func
parameters.
Issue: fixtaichi-dev#6855
### Brief Summary
Note that this PR is a quick hack to allow the type hint but doesn't
check invalid cases. We would like to wait for the upcoming new struct
type representation to officially support struct type as kernel/func
parameters.
The following code works:
while this doesn't:
The only difference is the type hint:
c: C
When the type hint is added, the following error is thrown:
The text was updated successfully, but these errors were encountered: