# C.1 Diagnostic catalogue

> 

Web page: https://pseudolearn.app/en/spec/apendice/diagnosticos

Every diagnostic code with its class, severity and message. When a section explains a code, the code links to it.

| Code | Severity | Class | Message | Section |
| --- | --- | --- | --- | --- |
| `algorithmOutsideEntry` | error | semantic | Only the entry module can contain an algorithm | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `ambiguousReexport` | error | semantic | The exported name «lexeme» is ambiguous | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `ambiguousVariantType` | error | semantic | Variant requires an explicit variant type in its context | [3.10](https://pseudolearn.app/en/spec/tipos/opcional-resultado.md) |
| `analysisNestingLimitExceeded` | error | syntax | Analysis nesting limit exceeded: «limit» | [2.10](https://pseudolearn.app/en/spec/lexico/errores.md) |
| `argumentCountMismatch` | error | semantic | Incorrect number of arguments: expected «expected» but found «found» | [9.3](https://pseudolearn.app/en/spec/objetos/constructor.md) |
| `arrayCannotBeUsedAsValue` | error | semantic | An array cannot be used as a scalar value in an expression or assignment | [3.4](https://pseudolearn.app/en/spec/tipos/arreglos.md) |
| `arrayDimensionCountMismatch` | error | semantic | Incorrect number of indices for array «lexeme» | [3.4](https://pseudolearn.app/en/spec/tipos/arreglos.md) |
| `arrayIndexOutOfRange` | error | runtime | Index «index» is out of range for an array of size «size» | [5.3](https://pseudolearn.app/en/spec/declaraciones/asignacion.md) |
| `awaitInsideDefer` | error | semantic | Await is not allowed inside defer | [11.1](https://pseudolearn.app/en/spec/tareas/suspendible.md) |
| `awaitOperandInvalid` | error | semantic | Await requires a suspendable operation or task handle | [11.1](https://pseudolearn.app/en/spec/tareas/suspendible.md) |
| `awaitOutsideSuspendible` | error | semantic | Await is only allowed in a suspendable subprogram or root unit | [7.8](https://pseudolearn.app/en/spec/subprogramas/pureza.md) |
| `bindingOutsideScope` | error | semantic | Declaration of «lexeme» is outside its scope | [6.5](https://pseudolearn.app/en/spec/control/para.md) |
| `bindingReadsOwnInitializer` | error | semantic | Initializer reads its own binding | [5.1](https://pseudolearn.app/en/spec/declaraciones/definir.md) |
| `bindingShadowsOuter` | warning | semantic | Declaration of «lexeme» shadows an outer binding | [6.5](https://pseudolearn.app/en/spec/control/para.md) |
| `breakOutsideLoop` | error | semantic | Break is only valid inside a loop | [6.7](https://pseudolearn.app/en/spec/control/salir.md) |
| `byReferenceArgumentRequiresDesignator` | error | semantic | An argument passed by reference must be a variable or array element | [7.3](https://pseudolearn.app/en/spec/subprogramas/referencia.md) |
| `byReferenceArgumentTypeMismatch` | error | semantic | The type of argument passed by reference to «lexeme» must match parameter type exactly |  |
| `bytesRangeOutOfBounds` | error | runtime | The segment exceeds the bounds of Bytes | [3.14](https://pseudolearn.app/en/spec/tipos/bytes.md) |
| `callAsExpressionWithoutReturnType` | error | semantic | Subroutine «lexeme» does not return a value and cannot be used in an expression | [7.4](https://pseudolearn.app/en/spec/subprogramas/llamada.md) |
| `cannotConcatenateNumberWithText` | error | semantic | Cannot concatenate number with text; use conversion function or separate expressions with comma | [4.6](https://pseudolearn.app/en/spec/expresiones/concatenacion.md) |
| `cannotInferTypeArgument` | error | semantic | Cannot infer a unique type argument «lexeme» |  |
| `cellLimitExceeded` | error | runtime | Memory limit reached: «limit» cells | [13.6](https://pseudolearn.app/en/spec/motor/limites.md) |
| `chainedArrayAccess` | error | syntax | Chained multidimensional array access is not allowed; use single brackets with commas |  |
| `channelCapacityExceeded` | error | runtime | Channel capacity exceeds the configured maximum | [13.6](https://pseudolearn.app/en/spec/motor/limites.md) |
| `channelCapacityInvalid` | error | semantic | Channel capacity must be positive | [11.3](https://pseudolearn.app/en/spec/tareas/canales.md) |
| `channelElementNotTransferable` | error | semantic | A channel element must be transferable: «type» at «path» | [11.3](https://pseudolearn.app/en/spec/tareas/canales.md) |
| `channelOperationWithoutAwait` | error | semantic | Send and receive require await | [11.3](https://pseudolearn.app/en/spec/tareas/canales.md) |
| `circularConstantDefinition` | error | semantic | Constant «lexeme» depends on itself | [5.2](https://pseudolearn.app/en/spec/declaraciones/constante.md) |
| `circularInheritance` | error | semantic | Circular inheritance detected in class «lexeme» | [9.4](https://pseudolearn.app/en/spec/objetos/herencia.md) |
| `classAndSubroutineSameName` | error | semantic | Name conflict: class and subroutine cannot both be named «lexeme» |  |
| `classInsideAlgorithm` | error | syntax | Declaring a class inside the algorithm body is not allowed |  |
| `classInsideSubroutine` | error | syntax | Declaring a class inside a subroutine is not allowed |  |
| `closureEnvironmentTooLarge` | error | semantic | Closure environment exceeds its representation limit |  |
| `collectionCannotBeWritten` | error | semantic | Collection elements have no output representation | [3.5](https://pseudolearn.app/en/spec/tipos/vectores.md) |
| `collectionLimitExceeded` | error | runtime | Collection element or byte limit exceeded | [3.5](https://pseudolearn.app/en/spec/tipos/vectores.md) |
| `collectionModifiedDuringIteration` | error | runtime | The collection was structurally modified during iteration | [6.6](https://pseudolearn.app/en/spec/control/para-cada.md) |
| `collectionVersionExhausted` | error | runtime | Collection structural version exhausted |  |
| `constantArithmeticOverflow` | error | semantic | Computing constant «lexeme» overflows the allowed range | [5.2](https://pseudolearn.app/en/spec/declaraciones/constante.md) |
| `constantBudgetExceeded` | error | semantic | Computing constant «lexeme» exceeds the allowed budget | [5.2](https://pseudolearn.app/en/spec/declaraciones/constante.md) |
| `constantDivisionByZero` | error | semantic | Computing constant «lexeme» divides by zero | [5.2](https://pseudolearn.app/en/spec/declaraciones/constante.md) |
| `constantNotEvaluable` | error | semantic | The value of constant «lexeme» cannot be computed when the program is analyzed | [5.2](https://pseudolearn.app/en/spec/declaraciones/constante.md) |
| `constantReassigned` | error | semantic | Constant «lexeme» cannot be assigned | [5.2](https://pseudolearn.app/en/spec/declaraciones/constante.md) |
| `constructorOutsideClass` | error | syntax | Constructor is only valid inside a class |  |
| `constructorReturnTypeNotAllowed` | error | syntax | Constructor does not allow a return type |  |
| `constructorVisibilityNotAllowed` | error | syntax | Constructor does not allow a visibility modifier; it is always public |  |
| `controlTransferInsideCleanup` | error | semantic | A cleanup cannot transfer control or register another cleanup | [6.8](https://pseudolearn.app/en/spec/control/diferir.md) |
| `controlVariableModified` | error | semantic | Control variable «lexeme» is modified inside the loop | [6.5](https://pseudolearn.app/en/spec/control/para.md) |
| `decimalPlacesOutOfRange` | error | runtime | The number of decimal places must be between 0 and 100 | [12.3](https://pseudolearn.app/en/spec/biblioteca/conversion.md) |
| `dimensionWithoutType` | error | semantic | Dimension without a type requires «lexeme» to be declared with define in this scope, without a value and unused | [3.4](https://pseudolearn.app/en/spec/tipos/arreglos.md) |
| `discardRequiresResult` | error | semantic | Discard requires a result |  |
| `discardedReturnValue` | warning | semantic | Return value from subroutine «lexeme» is discarded | [7.4](https://pseudolearn.app/en/spec/subprogramas/llamada.md) |
| `divOrModWithRealOperand` | error | semantic | The div and mod operators only accept integers; use trunc or round for real values |  |
| `divisionByZero` | error | runtime | Division by zero | [4.2](https://pseudolearn.app/en/spec/expresiones/division.md) |
| `duplicateClass` | error | semantic | Duplicate declaration of class «lexeme» |  |
| `duplicateConstructor` | error | syntax | Multiple constructors in the same class are not allowed |  |
| `duplicateDefaultCase` | error | syntax | Cannot have more than one default branch |  |
| `duplicateElseClause` | error | syntax | If statement cannot have more than one else branch |  |
| `duplicateEnumMember` | error | semantic | Member «lexeme» is repeated in the enumeration | [3.8](https://pseudolearn.app/en/spec/tipos/enumerados.md) |
| `duplicateMember` | error | semantic | Duplicate member «lexeme» in class | [9.1](https://pseudolearn.app/en/spec/objetos/clase.md) |
| `duplicateModifier` | error | syntax | Duplicate modifier |  |
| `duplicateParameterName` | error | semantic | Duplicate parameter name: «lexeme» | [7.2](https://pseudolearn.app/en/spec/subprogramas/parametros.md) |
| `duplicatePassingModifier` | error | syntax | Cannot specify both By Value and By Reference for the same parameter |  |
| `duplicateSubroutine` | error | semantic | Duplicate declaration of subroutine «lexeme» | [7.1](https://pseudolearn.app/en/spec/subprogramas/declaracion.md) |
| `duplicateSwitchCaseLabel` | error | syntax | Duplicate label in switch statement: «lexeme» | [6.2](https://pseudolearn.app/en/spec/control/segun.md) |
| `duplicateTypeDeclaration` | error | semantic | Type «lexeme» is already declared |  |
| `duplicateVariableDeclaration` | error | semantic | Duplicate declaration of variable «lexeme» in the same scope | [5.1](https://pseudolearn.app/en/spec/declaraciones/definir.md) |
| `duplicateVisibilityModifier` | error | syntax | Cannot specify more than one visibility modifier for the same member |  |
| `elementTypeNotComparable` | error | semantic | The element type does not support value search |  |
| `elementTypeNotOrderable` | error | semantic | The element type requires a comparator |  |
| `emptyDimensionList` | error | syntax | Dimension declaration requires at least one dimension |  |
| `emptyIndexList` | error | syntax | Array access requires at least one index |  |
| `emptyParentheses` | error | syntax | Parentheses cannot be empty |  |
| `emptySeparator` | error | runtime | The separator cannot be empty |  |
| `entryMissingAlgorithm` | error | semantic | The entry module does not contain an algorithm | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `expectedAlgorithmName` | error | syntax | Expected algorithm name |  |
| `expectedAlgorithmStart` | error | syntax | Expected algorithm start | [8.1](https://pseudolearn.app/en/spec/programas/estructura.md) |
| `expectedAssignmentOperator` | error | syntax | Expected assignment operator |  |
| `expectedBranchSeparator` | error | syntax | Expected branch separator |  |
| `expectedClassName` | error | syntax | Expected class name |  |
| `expectedClassNameInInstantiation` | error | syntax | Expected class name after keyword new |  |
| `expectedConstantInitializer` | error | syntax | A constant needs an initial value | [5.2](https://pseudolearn.app/en/spec/declaraciones/constante.md) |
| `expectedConstantName` | error | syntax | Expected constant name | [5.2](https://pseudolearn.app/en/spec/declaraciones/constante.md) |
| `expectedDoKeyword` | error | syntax | Expected do keyword | [6.3](https://pseudolearn.app/en/spec/control/mientras.md) |
| `expectedEnumMember` | error | syntax | Expected an enumeration member |  |
| `expectedEnumName` | error | syntax | Expected enumeration name |  |
| `expectedExpression` | error | syntax | Expected an expression | [10.3](https://pseudolearn.app/en/spec/diagnosticos/recuperacion.md) |
| `expectedForLoopVariable` | error | syntax | Expected control variable for counted loop |  |
| `expectedIdentifierInDeclaration` | error | syntax | Expected at least one variable to declare |  |
| `expectedIdentifierInDimension` | error | syntax | Expected array name to dimension |  |
| `expectedInterfaceSignature` | error | syntax | Expected a method signature without a body |  |
| `expectedMemberNameAfterDot` | error | syntax | Expected member name after dot access operator |  |
| `expectedMemberNameAfterThis` | error | syntax | Keyword this must be followed by a member access (.name) |  |
| `expectedModuleName` | error | syntax | Expected a module name | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `expectedParameterName` | error | syntax | Expected parameter name |  |
| `expectedReadTarget` | error | syntax | Read statement requires at least one variable |  |
| `expectedRecordField` | error | syntax | A record only contains field declarations |  |
| `expectedRecordName` | error | syntax | Expected record name |  |
| `expectedSubroutineLeftParenthesis` | error | syntax | Expected opening parenthesis in subroutine header |  |
| `expectedSubroutineName` | error | syntax | Expected subroutine name |  |
| `expectedThenKeyword` | error | syntax | Expected then keyword | [6.1](https://pseudolearn.app/en/spec/control/si.md) |
| `expectedToKeyword` | error | syntax | Expected to keyword for counted loop limit |  |
| `expectedType` | error | syntax | Expected a primitive data type |  |
| `expectedTypeConnector` | error | syntax | Expected type connector |  |
| `expectedVariantAlternative` | error | syntax | Expected a variant case |  |
| `genericConstraintNotSatisfied` | error | semantic | The type argument does not implement interface «lexeme» |  |
| `genericInstanceLimitExceeded` | error | semantic | Generic «lexeme» exceeds the limit of «limit» instances |  |
| `identifierMatchesFieldWithoutThis` | error | semantic | Unqualified field access; use this.«lexeme» | [9.2](https://pseudolearn.app/en/spec/objetos/metodos.md) |
| `immutableBindingAssignment` | error | semantic | This binding cannot be reassigned | [6.6](https://pseudolearn.app/en/spec/control/para-cada.md) |
| `immutableValueWrite` | error | semantic | An immutable value cannot be modified | [3.13](https://pseudolearn.app/en/spec/tipos/inmutable.md) |
| `importCycle` | error | semantic | The imports form a cycle: «lexeme» | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `importNameCollision` | error | semantic | The name «lexeme» is already in use in this module | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `incompatibleArgumentType` | error | semantic | Incompatible argument type for parameter «lexeme» | [12.8](https://pseudolearn.app/en/spec/biblioteca/json.md) |
| `incompatibleMethodOverride` | error | semantic | Overridden method «lexeme» signature does not match superclass method | [9.4](https://pseudolearn.app/en/spec/objetos/herencia.md) |
| `incompatibleOperandTypes` | error | semantic | Incompatible types for operator «lexeme» | [4.1](https://pseudolearn.app/en/spec/expresiones/aritmeticos.md) |
| `incompatiblePropagationType` | error | semantic | Propagation requires a compatible return and the same error type | [12.7](https://pseudolearn.app/en/spec/biblioteca/archivos.md) |
| `incompatibleReturnType` | error | semantic | The returned expression type does not match the declared return type |  |
| `incompatibleSwitchCaseType` | error | semantic | Case label type is not compatible with switch selector | [6.2](https://pseudolearn.app/en/spec/control/segun.md) |
| `incompatibleTypesInAssignment` | error | semantic | Incompatible types in assignment: cannot assign «found» to «expected» | [5.3](https://pseudolearn.app/en/spec/declaraciones/asignacion.md) |
| `incompatibleVariantConstructor` | error | semantic | Constructor does not belong to the expected variant type | [3.10](https://pseudolearn.app/en/spec/tipos/opcional-resultado.md) |
| `inferredVariableType` | information | semantic | Inferred type for «lexeme»: «type» |  |
| `inheritedAttributeShadowed` | error | semantic | Attribute «lexeme» is already declared in a superclass | [9.4](https://pseudolearn.app/en/spec/objetos/herencia.md) |
| `initializationInDeclarationNotAllowed` | error | syntax | Variable declaration does not support initial value assignment |  |
| `initializerWithMultipleNames` | error | syntax | An initial value is only allowed when declaring a single name | [5.1](https://pseudolearn.app/en/spec/declaraciones/definir.md) |
| `integerLiteralOutOfRange` | error | syntax | Integer literal «lexeme» is out of the signed 64-bit range | [2.6](https://pseudolearn.app/en/spec/lexico/numeros.md) |
| `integerOverflow` | error | runtime | The operation produces an integer outside the signed 64-bit range | [12.4](https://pseudolearn.app/en/spec/biblioteca/matematicas.md) |
| `interfaceCannotBeValue` | error | semantic | An interface can only constrain a type parameter |  |
| `interfaceInsideAlgorithm` | error | syntax | An interface cannot be declared inside a unit body |  |
| `interfaceMethodMissing` | error | semantic | Missing implementation of method «lexeme» |  |
| `interfaceMethodNotPublic` | error | semantic | Implemented method «lexeme» must be public |  |
| `interfaceMethodSignatureMismatch` | error | semantic | The signature of method «lexeme» does not satisfy the interface | [9.5](https://pseudolearn.app/en/spec/objetos/interfaces.md) |
| `internalFault` | error | internal | Internal engine fault |  |
| `invalidArrayReturnType` | error | syntax | Return type cannot be an array |  |
| `invalidAssignmentTarget` | error | syntax | Assignment target is not a valid variable or array element | [5.3](https://pseudolearn.app/en/spec/declaraciones/asignacion.md) |
| `invalidCharacterCode` | error | runtime | Code «code» does not designate a valid Unicode code point | [12.2](https://pseudolearn.app/en/spec/biblioteca/texto.md) |
| `invalidDefaultCasePosition` | error | syntax | Default branch must be the last branch in switch statement |  |
| `invalidDictionaryKeyType` | error | semantic | The dictionary key type is not allowed | [3.6](https://pseudolearn.app/en/spec/tipos/diccionarios.md) |
| `invalidEscapeSequence` | error | lexical | Invalid escape sequence: «lexeme» | [2.7](https://pseudolearn.app/en/spec/lexico/textos.md) |
| `invalidForEachBindings` | error | semantic | The binding count does not match the collection |  |
| `invalidForEachCollection` | error | semantic | For each requires a vector, dictionary, or one-dimensional array |  |
| `invalidFunctionReference` | error | runtime | Function reference does not match a valid signature |  |
| `invalidPaddingText` | error | runtime | The padding must have exactly one code point | [12.2](https://pseudolearn.app/en/spec/biblioteca/texto.md) |
| `invalidRandomBound` | error | runtime | The random bound must be greater than zero | [12.5](https://pseudolearn.app/en/spec/biblioteca/azar.md) |
| `invalidRandomRange` | error | runtime | The randomBetween interval needs a start less than or equal to its end | [12.5](https://pseudolearn.app/en/spec/biblioteca/azar.md) |
| `invalidReadTarget` | error | syntax | Read target is not a valid variable or array element | [12.6](https://pseudolearn.app/en/spec/biblioteca/consola.md) |
| `invalidSuperConstructorCallPosition` | error | semantic | Call to superclass constructor must be the first statement |  |
| `jsonKindMismatch` | error | runtime | The operation does not accept this JSON kind |  |
| `maxDiagnosticsExceeded` | error | syntax | Maximum limit of syntactic diagnostics exceeded | [10.3](https://pseudolearn.app/en/spec/diagnosticos/recuperacion.md) |
| `methodNamedAsClass` | error | syntax | To declare a constructor use the keyword Constructor instead of the class name |  |
| `methodOutsideClass` | error | syntax | Method declaration is only valid inside a class |  |
| `mismatchedBlockEnd` | error | syntax | Closing token does not match open block: «lexeme» |  |
| `missingDictionaryKey` | error | runtime | The key does not exist in the dictionary | [3.6](https://pseudolearn.app/en/spec/tipos/diccionarios.md) |
| `missingInstantiationParentheses` | error | syntax | Instantiation requires parentheses with or without arguments |  |
| `missingReturnExpression` | error | semantic | Expected an expression in the return statement |  |
| `missingStatementTerminator` | error | syntax | Expected a semicolon at the end of the statement | [10.3](https://pseudolearn.app/en/spec/diagnosticos/recuperacion.md) |
| `missingSuperConstructorCall` | error | semantic | Missing required call to superclass constructor |  |
| `moduleSyntaxOutsideProject` | error | semantic | Import, export and unit visibility are only allowed inside a project | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `multipleAlgorithms` | error | syntax | Multiple algorithms in a single source file are not allowed | [8.1](https://pseudolearn.app/en/spec/programas/estructura.md) |
| `multipleInheritanceNotSupported` | error | syntax | Multiple inheritance is not allowed; only single inheritance is supported | [9.4](https://pseudolearn.app/en/spec/objetos/herencia.md) |
| `mutableClosureCapture` | error | semantic | Cannot capture «lexeme» of type «type»: it is reassigned or is a by-reference parameter | [3.11](https://pseudolearn.app/en/spec/tipos/funciones.md) |
| `negativeArraySize` | error | runtime | An array size cannot be negative: «size» | [3.4](https://pseudolearn.app/en/spec/tipos/arreglos.md) |
| `negativeIntegerExponent` | error | runtime | Integer power does not allow a negative exponent: «exponent» | [4.3](https://pseudolearn.app/en/spec/expresiones/potencia.md) |
| `nestedClassNotSupported` | error | syntax | Declaring a class inside another class is not allowed |  |
| `noOrderBetweenBooleans` | error | semantic | Relational order operators are not permitted between boolean values | [4.4](https://pseudolearn.app/en/spec/expresiones/comparacion.md) |
| `nonBooleanCondition` | error | semantic | Condition must be a boolean expression | [6.3](https://pseudolearn.app/en/spec/control/mientras.md) |
| `nonExhaustiveSwitch` | error | semantic | Missing branches: «lexeme» | [6.2](https://pseudolearn.app/en/spec/control/segun.md) |
| `nonFiniteRealResult` | error | runtime | The operation produces a non-finite real value | [12.4](https://pseudolearn.app/en/spec/biblioteca/matematicas.md) |
| `nonIntegerArrayIndex` | error | semantic | Array index must be of integer type |  |
| `nonIntegerForBound` | error | semantic | For loop control variable and bounds must be of integer type |  |
| `nonLiteralSwitchCaseLabel` | error | syntax | Switch case labels must be literal values |  |
| `objectCannotBeWritten` | error | semantic | Cannot write an object directly to output; access its attributes |  |
| `paddingWidthOutOfRange` | error | runtime | The padding width cannot be negative | [12.2](https://pseudolearn.app/en/spec/biblioteca/texto.md) |
| `passingModifierBeforeParameterName` | error | syntax | Passing modifier must be placed after parameter type |  |
| `privateImport` | error | semantic | «lexeme» is private in its module | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `privateMemberAccess` | error | syntax | Cannot access private member «lexeme» of class «className» | [9.1](https://pseudolearn.app/en/spec/objetos/clase.md) |
| `privateReexport` | error | semantic | Cannot re-export «lexeme»: it is private | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `privateTypeInPublicSignature` | error | semantic | The private type «lexeme» appears in a public signature | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `profileMismatch` | error | semantic | The configured profile does not match the one the file declares: «lexeme» |  |
| `pureFunctionInterfaceImpurity` | error | semantic | The implementation of a pure interface method cannot have side effects | [7.8](https://pseudolearn.app/en/spec/subprogramas/pureza.md) |
| `pureFunctionSideEffect` | error | semantic | A pure function cannot perform I/O effects or invoke capabilities | [7.8](https://pseudolearn.app/en/spec/subprogramas/pureza.md) |
| `pureFunctionTaskOperation` | error | semantic | A pure function cannot operate tasks or channels | [11.3](https://pseudolearn.app/en/spec/tareas/canales.md) |
| `pureFunctionTransitiveSideEffect` | error | semantic | A pure function cannot invoke subroutines or closures with side effects | [7.8](https://pseudolearn.app/en/spec/subprogramas/pureza.md) |
| `readValueTypeMismatch` | warning | runtime | Expected a value of type «expected», and received «found» | [12.6](https://pseudolearn.app/en/spec/biblioteca/consola.md) |
| `realEqualityComparison` | warning | semantic | Equality comparison between real values; precision errors may yield unexpected results | [4.4](https://pseudolearn.app/en/spec/expresiones/comparacion.md) |
| `recordArrayTooWide` | error | semantic | A record with more than 1024 leaves cannot be an array element |  |
| `recordCannotBeWritten` | error | semantic | A record cannot be written directly | [3.7](https://pseudolearn.app/en/spec/tipos/registros.md) |
| `recordLayoutLimit` | error | semantic | A record with more than 65535 leaves exceeds the layout limit |  |
| `recordNotInferable` | error | semantic | Variable «lexeme» must be declared with its type to hold a record |  |
| `recordWithoutFields` | error | semantic | Record «lexeme» must have at least one field | [3.7](https://pseudolearn.app/en/spec/tipos/registros.md) |
| `recursionDepthExceeded` | error | runtime | Recursion depth limit reached: «limit» | [13.6](https://pseudolearn.app/en/spec/motor/limites.md) |
| `recursiveRecordContainment` | error | semantic | Record «lexeme» contains itself by value | [3.7](https://pseudolearn.app/en/spec/tipos/registros.md) |
| `reservedImportNeedsAlias` | error | semantic | The imported name «lexeme» is a reserved word of this profile and needs an alias | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `reservedLexemeUsedAsName` | error | syntax | "«lexeme»" is a reserved word in this profile, equivalent to «token». Choose another name. | [2.5](https://pseudolearn.app/en/spec/lexico/palabras-reservadas.md) |
| `resultNotHandled` | error | semantic | Unhandled result of type «type»: handle it with switch, propagate it, or discard it explicitly | [3.10](https://pseudolearn.app/en/spec/tipos/opcional-resultado.md) |
| `returnExpressionInVoidSubroutine` | error | semantic | A subroutine or method with no return type cannot return a value |  |
| `returnOutsideSubroutine` | error | syntax | Return statement is only valid inside a subroutine | [7.5](https://pseudolearn.app/en/spec/subprogramas/retornar.md) |
| `returnValueInReturnVariableFunction` | error | semantic | A function with a return variable ends with return and no expression | [7.5](https://pseudolearn.app/en/spec/subprogramas/retornar.md) |
| `returnVariableNotDeclared` | error | semantic | Return variable «lexeme» must be declared with define in the function body | [7.1](https://pseudolearn.app/en/spec/subprogramas/declaracion.md) |
| `returnWithValueInConstructor` | error | semantic | A constructor cannot return a value |  |
| `selectNeedsTwoBranches` | error | semantic | Select requires at least two receive branches | [11.3](https://pseudolearn.app/en/spec/tareas/canales.md) |
| `snapshotNotSupported` | error | semantic | Type «type» does not support snapshots at «path» | [3.13](https://pseudolearn.app/en/spec/tipos/inmutable.md) |
| `spawnOutsideTaskScope` | error | semantic | Spawn is only allowed in the direct lexical body of tasks | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `spawnTargetNotSuspendible` | error | semantic | Spawn requires the name of a suspendable subprogram | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `statementBudgetExhausted` | information | runtime | Statement budget exhausted: «limit» | [13.6](https://pseudolearn.app/en/spec/motor/limites.md) |
| `stringPositionOutOfRange` | error | runtime | Position «position» is out of range for a string of length «length» | [12.2](https://pseudolearn.app/en/spec/biblioteca/texto.md) |
| `stringToNumberConversionFailed` | error | runtime | Text «lexeme» does not represent a number | [12.3](https://pseudolearn.app/en/spec/biblioteca/conversion.md) |
| `subroutineAndVariableSameName` | error | semantic | Variable «lexeme» cannot have the same name as a subroutine in the same scope |  |
| `subroutineEndedWithoutReturn` | error | runtime | An execution path of «lexeme» reaches the end without returning | [7.5](https://pseudolearn.app/en/spec/subprogramas/retornar.md) |
| `subroutineInsideAlgorithm` | error | syntax | Declaring a subroutine inside the algorithm body is not allowed |  |
| `subroutineInsideClass` | error | syntax | Declaring a subroutine inside a class is not allowed; use a method declaration |  |
| `subroutineInsideSubroutine` | error | syntax | Declaring a subroutine inside another subroutine is not allowed |  |
| `subroutineWithoutReturn` | error | semantic | Subroutine «lexeme» declares a return type but its body contains no return statement | [7.1](https://pseudolearn.app/en/spec/subprogramas/declaracion.md) |
| `superInClassWithoutSuperclass` | error | syntax | Cannot use super in a class that does not inherit from any superclass | [9.4](https://pseudolearn.app/en/spec/objetos/herencia.md) |
| `superNotFollowedByCall` | error | syntax | Keyword super can only be used as target of a method or constructor call |  |
| `superOutsideMethod` | error | syntax | Keyword super is only valid inside a method or constructor |  |
| `suspendibleAsValue` | error | semantic | A suspendable subprogram cannot be used as a value | [11.1](https://pseudolearn.app/en/spec/tareas/suspendible.md) |
| `suspendibleCallWithoutAwait` | error | semantic | A call to a suspendable subprogram must use await | [11.1](https://pseudolearn.app/en/spec/tareas/suspendible.md) |
| `suspendibleModifierNotAllowed` | error | semantic | The suspendable modifier is not allowed on this declaration | [11.1](https://pseudolearn.app/en/spec/tareas/suspendible.md) |
| `taskArgumentNotTransferable` | error | semantic | The task argument cannot be transferred in isolation: «type» at «path» | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `taskByReferenceArgument` | error | semantic | A task argument cannot be passed by reference | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `taskDeadlock` | error | runtime | The task agenda has no runnable tasks or pending effects that can resume it | [13.3](https://pseudolearn.app/en/spec/motor/agenda.md) |
| `taskErrorNotTransferable` | error | semantic | A task error must be transferable: «type» at «path» | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `taskHandleEscape` | error | semantic | A task handle can only be awaited within its scope | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `taskLimitExceeded` | error | runtime | Live task limit reached: «limit» | [13.6](https://pseudolearn.app/en/spec/motor/limites.md) |
| `taskScopeErrorTypeMismatch` | error | semantic | Fallible tasks in a scope require the same exact error type | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `taskScopeFailureUnbound` | error | semantic | A fallible scope needs a failure binding | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `taskScopeFailureUnused` | error | semantic | A scope failure binding requires fallible tasks and must be consumed | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `taskScopeInsideDefer` | error | semantic | Tasks and spawn are not allowed inside defer | [11.2](https://pseudolearn.app/en/spec/tareas/ambitos.md) |
| `thisOutsideMethod` | error | syntax | Keyword this is only valid inside a method or constructor |  |
| `trailingComma` | error | syntax | Trailing comma |  |
| `typeArgumentCountMismatch` | error | semantic | Type «lexeme» expects «expected» type arguments but received «found» | [3.12](https://pseudolearn.app/en/spec/tipos/genericos.md) |
| `typeConflictOnInferredVariable` | error | semantic | Type conflict for variable «lexeme»: cannot reassign to incompatible type |  |
| `unclosedAlgorithm` | error | syntax | Unclosed algorithm at end of file |  |
| `unclosedBracket` | error | syntax | Unclosed opening bracket |  |
| `unclosedClass` | error | syntax | Unclosed class at end of file |  |
| `unclosedDefer` | error | syntax | Unclosed defer block |  |
| `unclosedEnum` | error | syntax | Unclosed enumeration at end of file |  |
| `unclosedForStatement` | error | syntax | Unclosed for loop |  |
| `unclosedIfStatement` | error | syntax | Unclosed if statement | [6.1](https://pseudolearn.app/en/spec/control/si.md) |
| `unclosedInterface` | error | syntax | Unclosed interface |  |
| `unclosedMethod` | error | syntax | Unclosed method at end of file |  |
| `unclosedParenthesis` | error | syntax | Unclosed opening parenthesis |  |
| `unclosedRecord` | error | syntax | Unclosed record at end of file |  |
| `unclosedRepeatStatement` | error | syntax | Unclosed repeat loop | [6.4](https://pseudolearn.app/en/spec/control/repetir.md) |
| `unclosedSubroutine` | error | syntax | Unclosed subroutine at end of file |  |
| `unclosedSwitchStatement` | error | syntax | Unclosed switch statement |  |
| `unclosedTaskScope` | error | syntax | Unclosed task scope |  |
| `unclosedVariant` | error | syntax | Unclosed variant |  |
| `unclosedWhileStatement` | error | syntax | Unclosed while loop | [6.3](https://pseudolearn.app/en/spec/control/mientras.md) |
| `undeclaredClass` | error | semantic | Undeclared class: «lexeme» |  |
| `undeclaredSubroutine` | error | semantic | Undeclared subroutine: «lexeme» | [12.1](https://pseudolearn.app/en/spec/biblioteca/modelo.md) |
| `undeclaredSuperclass` | error | semantic | Superclass «lexeme» is not declared | [9.4](https://pseudolearn.app/en/spec/objetos/herencia.md) |
| `undeclaredVariable` | error | semantic | Undeclared variable: «lexeme» | [9.2](https://pseudolearn.app/en/spec/objetos/metodos.md) |
| `undefinedEnumMember` | error | semantic | The enumeration has no member «lexeme» | [3.8](https://pseudolearn.app/en/spec/tipos/enumerados.md) |
| `undefinedMember` | error | semantic | Undefined member: «lexeme» |  |
| `unexpectedBlockEnd` | error | syntax | Unexpected block closing without matching open block: «lexeme» |  |
| `unexpectedClosingParenthesis` | error | syntax | Unexpected closing parenthesis |  |
| `unexpectedModifierPosition` | error | syntax | Without newline modifier must be placed at the end of the statement | [12.6](https://pseudolearn.app/en/spec/biblioteca/consola.md) |
| `unexpectedStatement` | error | syntax | Unrecognized statement or token: «lexeme» |  |
| `unexpectedTokenInExpression` | error | syntax | Unexpected token in expression: «lexeme» |  |
| `unexpectedTokenOutsideAlgorithm` | error | syntax | Unexpected token outside algorithm: «lexeme» |  |
| `unexpectedTokenOutsideProgramUnit` | error | syntax | Unexpected token outside algorithm and subroutines: «lexeme» | [8.1](https://pseudolearn.app/en/spec/programas/estructura.md) |
| `uninitializedVariableRead` | error | runtime | Variable «lexeme» is read without being initialized | [5.5](https://pseudolearn.app/en/spec/declaraciones/sin-valor.md) |
| `unknownInterface` | error | semantic | Interface «lexeme» is not declared |  |
| `unreachableSwitchPattern` | error | semantic | Pattern is unreachable | [6.2](https://pseudolearn.app/en/spec/control/segun.md) |
| `unrecognizedCharacter` | error | lexical | Unrecognized character: «lexeme» | [2.10](https://pseudolearn.app/en/spec/lexico/errores.md) |
| `unresolvedImport` | error | semantic | The module does not export «lexeme» | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `unresolvedModule` | error | semantic | Module «lexeme» was not found | [8.2](https://pseudolearn.app/en/spec/programas/modulos.md) |
| `unsupportedAbstractConstruct` | error | syntax | Abstract classes and methods are not supported in PseudoLearn | [9.7](https://pseudolearn.app/en/spec/objetos/ausentes.md) |
| `unsupportedExceptionConstruct` | error | syntax | Structured exception handling is not supported in PseudoLearn | [9.7](https://pseudolearn.app/en/spec/objetos/ausentes.md) |
| `unsupportedProtectedConstruct` | error | syntax | Protected visibility is not supported in PseudoLearn; use public or private | [9.7](https://pseudolearn.app/en/spec/objetos/ausentes.md) |
| `unsupportedStaticConstruct` | error | syntax | Static members are not supported in PseudoLearn | [9.7](https://pseudolearn.app/en/spec/objetos/ausentes.md) |
| `unsupportedStructuredConstruct` | error | syntax | Construct not supported in structured programming: «lexeme» |  |
| `unterminatedString` | error | lexical | Unterminated string literal | [2.7](https://pseudolearn.app/en/spec/lexico/textos.md) |
| `unusedParameter` | warning | semantic | Parameter never used: «lexeme» |  |
| `unusedSubroutine` | warning | semantic | Subroutine declared but never called: «lexeme» |  |
| `variableAssignedNeverRead` | warning | semantic | Variable assigned but never read: «lexeme» | [5.6](https://pseudolearn.app/en/spec/declaraciones/sin-usar.md) |
| `variableDeclaredNeverUsed` | warning | semantic | Variable declared but never used: «lexeme» | [5.6](https://pseudolearn.app/en/spec/declaraciones/sin-usar.md) |
| `variableUsedBeforeDeclaration` | error | semantic | Variable «lexeme» is used before its declaration |  |
| `variableUsedUninitialized` | error | semantic | Variable «lexeme» may have no value at this point (cause: «cause») | [5.5](https://pseudolearn.app/en/spec/declaraciones/sin-valor.md) |
| `variantLayoutLimit` | error | semantic | Variant layout exceeds the operand limit |  |
| `variantRequiresPattern` | error | semantic | Variant must be inspected through switch patterns |  |
| `variantWithoutAlternatives` | error | semantic | Variant «lexeme» must have at least one alternative | [3.9](https://pseudolearn.app/en/spec/tipos/variantes.md) |
| `widenedVariableType` | information | semantic | Type of «lexeme» widened from Integer to Real |  |
| `zeroStepInCountedLoop` | error | runtime | The step of a counted loop cannot be zero | [6.5](https://pseudolearn.app/en/spec/control/para.md) |
