errors and warnings / classes / E3033
E3033 error
@intrinsic used outside compiler-known modules
- area
- classes (x3xxx)
- fails the build
- yes
@intrinsic binds a declaration to behaviour built into the compiler, and is
only for the compiler-known modules of the standard library. Remove it from
your declarations. The same code with the message "unknown intrinsic" means
the standard library asks for a newer compiler: update wowlua.
Example
@intrinsic("events.event")declare function event(name: string): anydeclare function event(name: string): anyThe compiler reports it like this:
error[E3033]: `@intrinsic` is only for compiler-known modules (the standard library) ┌─ src/main.wowlua:1:1 │ 1 │ @intrinsic("events.event") │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ here
Offline
$ wowlua explain E3033 E3033 (error): @intrinsic used outside compiler-known modules