Skip to content
ZOLO / TE840 Type · error

redundant cast

The source value already has the requested type, so `as Type` communicates no new intent and performs no work. Remove the redundant cast expression.

Why this fires

The source value already has the requested type, so the cast communicates no new intent and performs no work.

let count: int = 3
let copy = count as int // warning[TE840]

Fix it

Remove the redundant as Type expression.

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

enespt-br