x.executor: inline JobFn as fn () ! to avoid alias collision with x.async (#31191)

When a program imports both x.executor and x.async, the transform stage resolved executor.ExecutorJob.f (typed JobFn) to async.JobFn (fn (mut context.Context) !), because both modules declare a type alias named JobFn and the transform's type cache reused the async entry. Inlining the concrete signature removes the indirection and the collision.
This commit is contained in:
Mahdi ramezaan zaade authored and GitHub committed 2026-10-26 14:44:45 +03:00
1 parent 88ef628eb4
commit f130545104
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ mut:
}
struct ExecutorJob {
f JobFn @[required]
f fn () ! @[required]
result_ch chan ExecutorJobResult
has_result bool
report_error bool