v0.13.7
errors and warnings / classes

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

× failswowlua
@intrinsic("events.event")declare function event(name: string): any
✓ compileswowlua
declare function event(name: string): any

The 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

terminal
$ wowlua explain E3033
E3033 (error): @intrinsic used outside compiler-known modules

source on GitHub ↗