type error

Incompatible value kind

A type error occurs when a program attempts an operation on data of the wrong kind—adding a number to a string, calling a method on null, or passing an object where a function expects an array.

Some languages catch type errors before running (compile time); others fail only when the offending code executes (runtime).

The function crashed with a type error because it expected a list, not a dictionary.

Related

undefined · null · debug · stack · stack trace · trace · casting · coercion · JavaScript · TypeScript · string · integer · float · boolean · variable · function · argument · return

Categories
Opposites
error category in programming

type errorsyntax error

Invalid code structure

logic error · runtime error · stack overflow · race condition · memory error

Family

type, error, types, typed, typing, typist, typical, typically, typify

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Abstract · Negative · Rated G