Skip to content
ZOLO / TM100 Type · error

`super` used outside a mixin body

Compiler diagnostic TM100: `super` used outside a mixin body.

Why this fires

super is the callable wrapped by a mixin. Outside a function marked @mixin, there is no wrapped callable to resolve.

fn value() -> int { super() }
//                    ^ error[TM100]

Fix it

Use an ordinary function call, or move the wrapper logic into a mixin:

@mixin
fn traced() -> int { super() }

@traced
fn value() -> int { 7 }

See also

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

en