Elm Exactly
Results / tags /

elm19-compile-error

programs the compiler must reject, checked by the title of Elm 0.19.1's error report

Discussions of this tag and its tests ↓

Showing 226 of 226 tests. Hover over a badge for the reason.

Testelm-0.19.1elm-0.19.2elm-0.19.3lamdera-1.5.0
elm / AliasProblemExtensibleRecordUnitTupleAndFunctionTest (must not compile)elm-spec
A type alias that refers to itself inside an extensible record is rejected with an ALIAS PROBLEM.
passpassfailfail
elm / AliasProblemQualifiedTypeTest (must not compile)elm-spec
A type alias that refers to itself through a qualified type is rejected with an ALIAS PROBLEM.
passpassfailfail
elm / AliasProblemRecursiveAliasWithCommentedParensTest (must not compile)elm-spec
A record type alias that refers to itself is rejected with an ALIAS PROBLEM.
passpassfailfail
elm / BadMainRecursiveMainTest (must not compile)elm-spec
An annotated `main` that is mutually recursive with another function is rejected with a BAD MAIN error.
passpasspasspass
elm / BadMainRecursiveUnannotatedMainTest (must not compile)elm-spec
An unannotated `main` that is mutually recursive with another function is rejected with a BAD MAIN error.
passpasspasspass
elm / BadMainTypeAliasMainTest (must not compile)elm-spec
A `main` whose type is a record type alias is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeFunctionMainTest (must not compile)elm-spec
A `main` of function type `Int -> Int -> Int` is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeRecordMainTest (must not compile)elm-spec
A `main` of record type `{ a : Int, b : ( Int, Int, Int ) }` is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeThreeArgumentTypeMainTest (must not compile)elm-spec
A `main` whose type is a custom type with three type parameters is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeTypeVariableMainTest (must not compile)elm-spec
An unannotated `main` whose inferred type contains a type variable is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadMainTypeUnitMainTest (must not compile)elm-spec
A `main` of type `()` is rejected with a BAD MAIN TYPE error.
passpasspasspass
elm / BadTupleATupleOfFourTest (must not compile)elm-spec
A four-element tuple is rejected with a BAD TUPLE error.
passpasspasspass
elm / CyclicDefinitionATopLevelValueDefinedByItselfTest (must not compile)elm-spec
A top-level value defined in terms of itself is rejected with a CYCLIC DEFINITION error.
passpassfailfail
elm / CyclicValueALetValueDefinedByItselfTest (must not compile)elm-spec
A let-bound value defined in terms of itself is rejected with a CYCLIC VALUE error.
passpassfailpass
elm / InfiniteTypeSelfAppliedArgumentOnBothSidesTest (must not compile)elm-spec
A function argument applied to itself is rejected with an INFINITE TYPE error.
passpasspasspass
elm / MissingPatternsAMissingListLengthTest (must not compile)elm-spec
A `case` on a list that covers only the empty and one-element lists is rejected with a MISSING PATTERNS error.
passpasspasspass
elm / MissingPatternsAMissingTupleShapeTest (must not compile)elm-spec
A `case` on a pair of `Bool`s with no branch for `( False, False )` is rejected with a MISSING PATTERNS error.
passpasspasspass
elm / NameClashARecordFieldGivenTwiceTest (must not compile)elm-spec
A record literal that gives the same field twice, `{ a = 1, a = 2 }`, is rejected with a NAME CLASH error.
passpasspasspass
elm / NameClashTwoArgumentsOfOneNameTest (must not compile)elm-spec
A function whose two arguments share one name, `pick a a`, is rejected with a NAME CLASH error.
passpasspasspass
elm / NameClashTwoLetBindingsOfOneNameTest (must not compile)elm-spec
A `let` block that defines `y` twice is rejected with a NAME CLASH error.
passpasspasspass
elm / NamingErrorAnUnknownVariableTest (must not compile)elm-spec
A reference to a variable that is defined nowhere, `undefinedName`, is rejected with a NAMING ERROR.
passpasspasspass
elm / ParseErrorNumberBadHexDigitTest (must not compile)elm-spec
A hexadecimal literal containing a non-hex digit, `0x1g`, is rejected with a WEIRD HEXIDECIMAL syntax error.
passpasspasspass
elm / ParseErrorNumberFractionThenLetterTest (must not compile)elm-spec
A float literal followed directly by a letter, `1.5a`, is rejected with a WEIRD NUMBER syntax error.
passpasspasspass
elm / ParseErrorStringEscapeTooFewDigitsTest (must not compile)elm-spec
A Unicode escape in a string with only two hex digits, `"\u{41}"`, is rejected with a BAD UNICODE ESCAPE syntax error.
passpasspasspass
elm / ParseErrorStringEscapeUnclosedTest (must not compile)elm-spec
A Unicode escape in a string with no closing brace, `"\u{12"`, is rejected with a BAD UNICODE ESCAPE syntax error.
passpasspasspass
elm / PortProblemCharPayloadTest (must not compile)elm-spec
A port whose payload type is `Char` is rejected with a PORT ERROR naming the port and the `Char` type.
passpasspasspass
elm / PortProblemDeclarationWithoutNameTest (must not compile)elm-spec
A `port` keyword at the end of a module with no name or type after it is rejected with a PORT PROBLEM syntax error.
passpasspasspass
elm / RedundantPatternABranchAfterAWildcardTest (must not compile)elm-spec
A `case` branch placed after a wildcard branch is rejected with a REDUNDANT PATTERN error.
passpasspasspass
elm / ShadowingAnArgumentShadowingATopLevelValueTest (must not compile)elm-spec
A function argument with the same name as a top-level value is rejected with a SHADOWING error.
passpasspasspass
elm / ShadowingShadowingInLambdaTest (must not compile)elm-spec
A lambda argument with the same name as an argument of the enclosing function is rejected with a SHADOWING error.
passpasspasspass
elm / StandardA96NumberFlagsTest (must not compile)elm-spec
A `main` whose flags type is a `number` variable is refused.
passpasspasspass
elm / StandardA97MaybeNeverMissingJustTest (must not compile)elm-spec
A `case` on a `Maybe Never` must have a branch for `Just`.
passpasspasspass
elm / StandardA98TypeBeforeAliasStringMismatchTest (must not compile)elm-spec
A custom type declared before a local alias spelt like an imported type uses the local alias.
passpasspasspass
elm / StandardA99RecordPatternRowPunRejectedTest (must not compile)elm-spec
A record pattern row written `lab = var`, with the variable spelt as the label, is rejected.
passpasspasspass
elm / StandardA99RecordPatternRowRenameRejectedTest (must not compile)elm-spec
A record pattern row written `lab = var` is rejected.
passpasspasspass
elm / TooFewArgsAConstructorPatternWithTooFewArgumentsTest (must not compile)elm-spec
A constructor pattern with fewer arguments than the constructor takes is rejected with a TOO FEW ARGS error.
passpasspasspass
elm / TooManyArgsAConstructorPatternWithTooManyArgumentsTest (must not compile)elm-spec
A constructor pattern with more arguments than the constructor takes is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToAConstructorTest (must not compile)elm-spec
Applying a constructor to more arguments than it takes, `Just 1 2`, is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToAFunctionTest (must not compile)elm-spec
Applying a function to more arguments than it takes, `not True False`, is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToALambdaTest (must not compile)elm-spec
Applying a one-argument lambda to two arguments, `(\a -> a + 1) 1 2`, is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToALiteralTest (must not compile)elm-spec
An integer literal applied to an argument is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToALocalTest (must not compile)elm-spec
A top-level `Int` value applied to an argument is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToANullaryConstructorTest (must not compile)elm-spec
A constructor with no arguments applied to one is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TooManyArgsTooManyArgumentsToAnOperatorTest (must not compile)elm-spec
An operator function given three arguments is rejected with a TOO MANY ARGS error.
passpasspasspass
elm / TypeExprUnitAppliedTest (must not compile)elm-spec
The type annotation `foo : () String Float` is rejected, and not as a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAccessOnANumberTest (must not compile)elm-spec
Field access on an `Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAccessOnAnEmptyRecordTest (must not compile)elm-spec
Reading a field from an empty record is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAccessorUnderIntTest (must not compile)elm-spec
A field accessor function annotated as `Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAliasNamedLikeAnImportedTypeTest (must not compile)elm-spec
A local type alias that shadows an imported type name is a different type from it, so mixing the two is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAliasWhereARecordTest (must not compile)elm-spec
A value of a record alias used where a record with a differently typed field is expected is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAliasedRecordFieldOfTheWrongTypeTest (must not compile)elm-spec
A record whose field has the wrong type for its record alias annotation is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchAppendableAgainstATupleTest (must not compile)elm-spec
A list whose tuple elements disagree in both components is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchArgumentOfAFixedConstructorPatternTest (must not compile)elm-spec
A constructor pattern whose argument has the wrong type is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchArgumentToAConstructorTest (must not compile)elm-spec
A constructor applied to an argument of the wrong type is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchArgumentToAnOperatorFunctionTest (must not compile)elm-spec
A `String` passed to the operator function `(+)` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolLeftOfAppendTest (must not compile)elm-spec
A `Bool` on the left of `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolLeftOfMinusTest (must not compile)elm-spec
A `Bool` on the left of `-` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolLeftOfPowerTest (must not compile)elm-spec
A `Bool` on the left of `^` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolLeftOfTimesTest (must not compile)elm-spec
A `Bool` on the left of `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolPatternTest (must not compile)elm-spec
A `True` pattern in a `case` on a number is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolRightOfAppendWithAStringTest (must not compile)elm-spec
A `Bool` on the right of `++` after a `String` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchBoolRightOfPlusTest (must not compile)elm-spec
`1 + True` is rejected with a TYPE MISMATCH, because `+` takes two numbers and `True` is a `Bool`.
passpasspasspass
elm / TypeMismatchBoolsComparedTest (must not compile)elm-spec
`True < False` is rejected with a TYPE MISMATCH, because `<` takes comparable values and `Bool` is not comparable.
passpasspasspass
elm / TypeMismatchCaseAsAnArgumentTest (must not compile)elm-spec
A `case` expression passed as the argument to `not` is rejected with a TYPE MISMATCH, because its branch yields a number and `not` takes a `Bool`.
passpasspasspass
elm / TypeMismatchCharUnderIntTest (must not compile)elm-spec
A value annotated `Int` but defined as the character `'c'` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchClosedRecordWhereExtensibleTest (must not compile)elm-spec
Passing a record that lacks a field the result must have is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchCompappendAgainstARigidVarTest (must not compile)elm-spec
A value used with both `++` and `<` cannot share a type with an annotation's type variable, and the program is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchCompappendAgainstATupleTest (must not compile)elm-spec
A list whose two tuple entries disagree, one holding a value used with both `++` and `<`, the other a tuple of numbers in that position, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchCompappendListEntryWithABoolTest (must not compile)elm-spec
A list holding a value used with both `++` and `<` alongside `True` is rejected with a TYPE MISMATCH, because `Bool` can be neither appended nor compared.
passpasspasspass
elm / TypeMismatchComparableAgainstATupleTest (must not compile)elm-spec
A list whose two tuple entries disagree, one holding a value used with `<`, the other a tuple of numbers in that position, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchComposedWithANumberTest (must not compile)elm-spec
`not >> 1` is rejected with a TYPE MISMATCH, because `>>` composes two functions and `1` is a number.
passpasspasspass
elm / TypeMismatchConsHeadAgainstAConsTailTest (must not compile)elm-spec
A list pattern `1 :: "s" :: rest` is rejected with a TYPE MISMATCH, because it asks for a number and a `String` as elements of the same list.
passpasspasspass
elm / TypeMismatchConsedOntoABoolTest (must not compile)elm-spec
`1 :: True` is rejected with a TYPE MISMATCH, because the right side of `::` must be a list and `True` is a `Bool`.
passpasspasspass
elm / TypeMismatchConsedOntoAMaybeTest (must not compile)elm-spec
`1 :: Just 1` is rejected with a TYPE MISMATCH, because the right side of `::` must be a list and `Just 1` is a `Maybe`.
passpasspasspass
elm / TypeMismatchConstructorPatternTest (must not compile)elm-spec
A `case` on the number `1` with a `Just a` branch is rejected with a TYPE MISMATCH, because the pattern is a `Maybe` and the value is a number.
passpasspasspass
elm / TypeMismatchDestructureTest (must not compile)elm-spec
Destructuring the number `1` with the tuple pattern `( a, b )` in a `let` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchDifferentlyNamedComparableVarsTest (must not compile)elm-spec
A list of two tuples whose first components are values of different custom types is rejected with a TYPE MISMATCH, where the second components are functions annotated with differently named `comparable` variables.
passpasspasspass
elm / TypeMismatchDifferentlyNamedFlexVarsTest (must not compile)elm-spec
A list of two tuples whose first components are values of different custom types is rejected with a TYPE MISMATCH, where the second components are functions annotated with differently named type variables.
passpasspasspass
elm / TypeMismatchExtensibleRecordGivenAClosedOneTest (must not compile)elm-spec
A function annotated to return the extensible record `{ r | name : Int }` but returning the record literal `{ name = 1 }` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchExtensibleRecordMissingAFieldTest (must not compile)elm-spec
Passing `{ age = 1 }` to a function that takes `{ r | name : Int }` is rejected with a TYPE MISMATCH, because the record has no `name` field.
passpasspasspass
elm / TypeMismatchFieldAccessUnderIntTest (must not compile)elm-spec
A value annotated `Int` but defined as a `String` field of a record, `r.name`, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchFieldTypoTest (must not compile)elm-spec
The compiler rejects access to a misspelled record field, `r.nmae` on a record whose only field is `name`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFlexibleRecordWhereClosedAfterAMismatchTest (must not compile)elm-spec
The compiler rejects passing a tuple whose two components both disagree with the annotation, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFlexibleRecordWithAnExtraFieldWhereClosedTest (must not compile)elm-spec
The compiler rejects passing a record that must have an `age` field to a function that takes exactly `{ name : Int }`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatComparedForEqualityTest (must not compile)elm-spec
The compiler rejects `1.5 == "a"`, an equality test between a `Float` and a `String`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatLeftOfAppendTest (must not compile)elm-spec
The compiler rejects a `Float` on the left of `++`, which only accepts strings and lists, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatLeftOfIntDivideTest (must not compile)elm-spec
The compiler rejects the `Float` literal `1.5` on the left of the integer division operator `//`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatRightOfIntDivideTest (must not compile)elm-spec
The compiler rejects the `Float` literal `1.5` on the right of the integer division operator `//`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFloatRightOfMinusWithIntTest (must not compile)elm-spec
The compiler rejects `n - f`, subtracting a `Float` from an `Int`, with a TYPE MISMATCH error, because Elm has no implicit conversion between the two.
passpasspasspass
elm / TypeMismatchFloatRightOfPlusWithIntTest (must not compile)elm-spec
The compiler rejects `n + f`, adding a `Float` to an `Int`, with a TYPE MISMATCH error, because Elm has no implicit conversion between the two.
passpasspasspass
elm / TypeMismatchFloatRightOfPowerWithIntTest (must not compile)elm-spec
The compiler rejects `n ^ f`, raising an `Int` to a `Float` power, with a TYPE MISMATCH error, because `^` needs both sides to be the same number type.
passpasspasspass
elm / TypeMismatchFloatRightOfTimesWithIntTest (must not compile)elm-spec
The compiler rejects `n * f`, multiplying an `Int` by a `Float`, with a TYPE MISMATCH error, because Elm has no implicit conversion between the two.
passpasspasspass
elm / TypeMismatchFloatUnderIntTest (must not compile)elm-spec
The compiler rejects the `Float` literal `1.5` as the body of a definition annotated `Int`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFunctionInATypeArgumentTest (must not compile)elm-spec
The compiler rejects a list holding `Just not` as the body of a definition annotated `Maybe (Int -> Int)`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchFunctionLeftOfGreaterThanTest (must not compile)elm-spec
The compiler rejects `not > not`, comparing two functions with `>`, with a TYPE MISMATCH error, because functions are not `comparable`.
passpasspasspass
elm / TypeMismatchIfBranchTest (must not compile)elm-spec
The compiler rejects an `if` whose `then` branch is a number and whose `else` branch is a `String`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIfConditionIntTest (must not compile)elm-spec
The compiler rejects an `if` whose condition is the number `1` rather than a `Bool`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIfUnderIntTest (must not compile)elm-spec
The compiler rejects an `if` producing strings as the body of a definition annotated `Int`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchImportedTypeNamedLikeAnAliasTest (must not compile)elm-spec
The compiler rejects a list holding both `Basics.True` and a value of a local alias named `Bool`, which stands for `Int`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIntAgainstNumberAfterAMismatchTest (must not compile)elm-spec
The compiler rejects a list of pairs whose second entry has a `String` first component where the first entry has a number, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIntRightOfAppendTest (must not compile)elm-spec
The compiler rejects `"a" ++ n`, appending an `Int` to a `String`, with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchIntRightOfAppendWithAListTest (must not compile)elm-spec
Appending an `Int` to a list with `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfDivideTest (must not compile)elm-spec
Dividing by an `Int` with `/` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfMinusWithFloatTest (must not compile)elm-spec
Subtracting an `Int` from a `Float` with `-` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfPlusWithFloatTest (must not compile)elm-spec
Adding an `Int` to a `Float` with `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfPowerWithFloatTest (must not compile)elm-spec
Raising a `Float` to an `Int` power with `^` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntRightOfTimesWithFloatTest (must not compile)elm-spec
Multiplying a `Float` by an `Int` with `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchIntWhereFloatTest (must not compile)elm-spec
Returning an `Int` from a definition annotated `Float` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchLambdaArgumentPatternTest (must not compile)elm-spec
Applying a lambda with a tuple pattern to a number is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchLambdaCallAsAnArgumentTest (must not compile)elm-spec
Passing the result of a lambda call to `not` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListConsedOntoAListOfStringsTest (must not compile)elm-spec
Consing a list onto a list of strings with `::` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListEntryPatternTest (must not compile)elm-spec
A list pattern whose entries have different types is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListMultipliedTest (must not compile)elm-spec
Multiplying a list with `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListPatternTest (must not compile)elm-spec
Matching a number against a list pattern is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListRightOfAppendWithAStringTest (must not compile)elm-spec
Appending a list to a `String` with `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListRightOfPlusTest (must not compile)elm-spec
Adding a list to a number with `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListRightOfTimesTest (must not compile)elm-spec
Multiplying a number by a list with `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchListsAddedTest (must not compile)elm-spec
Adding two lists with `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchLocalTypeNamedLikeAnImportedOneTest (must not compile)elm-spec
A local type named `Maybe` is a different type from the core `Maybe`, so mixing them is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchMaybeConsedOntoAListOfStringsTest (must not compile)elm-spec
Consing a `Maybe` onto a list of strings with `::` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchMaybeOfANumberAgainstARigidVarTest (must not compile)elm-spec
Returning `Just 1` from a function annotated `a -> a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchMisspeltFieldAmongManyTest (must not compile)elm-spec
Accessing a misspelt field of a record with many fields is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchMisspeltFieldOfExtensibleRecordTest (must not compile)elm-spec
A function annotated to take an extensible record with fields `alpha` and `beta` that reads the misspelt field `r.alpah` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNegateTest (must not compile)elm-spec
Negating a `String` with the prefix minus (`-s`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberAndAppendableListEntriesTest (must not compile)elm-spec
A list literal whose entries are `a + 1` and `b ++ b` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberAndCompappendListEntriesTest (must not compile)elm-spec
A list literal whose entries are `a + 1` and a value `c` that is both appended (`b ++ b`) and compared (`c < c`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberIntoNotWithPipeLeftTest (must not compile)elm-spec
Applying `not` to a number with `<|` (`not <| 1`) is rejected with a TYPE MISMATCH error, because `not` takes a `Bool`.
passpasspasspass
elm / TypeMismatchNumberLeftOfAndTest (must not compile)elm-spec
A number as the left operand of `&&` (`1 && True`) is rejected with a TYPE MISMATCH error, because `&&` takes two `Bool`s.
passpasspasspass
elm / TypeMismatchNumberLeftOfComposeRightTest (must not compile)elm-spec
A number as the left operand of `>>` (`1 >> not`) is rejected with a TYPE MISMATCH error, because `>>` composes two functions.
passpasspasspass
elm / TypeMismatchNumberLeftOfOrTest (must not compile)elm-spec
A number as the left operand of `||` (`1 || True`) is rejected with a TYPE MISMATCH error, because `||` takes two `Bool`s.
passpasspasspass
elm / TypeMismatchNumberLeftOfPipeLeftTest (must not compile)elm-spec
A number as the left operand of `<|` (`1 <| 2`) is rejected with a TYPE MISMATCH error, because `<|` applies its left operand as a function.
passpasspasspass
elm / TypeMismatchNumberListEntryWithAnAliasTest (must not compile)elm-spec
A list literal holding a number and a value of the record alias `N` (`[ 1, n ]`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberPipedIntoANumberTest (must not compile)elm-spec
Piping a number into another number (`1 |> 2`) is rejected with a TYPE MISMATCH error, because `|>` applies its right operand as a function.
passpasspasspass
elm / TypeMismatchNumberPipedIntoNotTest (must not compile)elm-spec
Piping a number into `not` (`1 |> not`) is rejected with a TYPE MISMATCH error, because `not` takes a `Bool`.
passpasspasspass
elm / TypeMismatchNumberPlusAppendableTest (must not compile)elm-spec
Appending to the result of an addition (`(a + 1) ++ b`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchNumberRightOfAndTest (must not compile)elm-spec
A number as the right operand of `&&` (`True && 1`) is rejected with a TYPE MISMATCH error, because `&&` takes two `Bool`s.
passpasspasspass
elm / TypeMismatchNumberRightOfOrTest (must not compile)elm-spec
A number as the right operand of `||` (`True || 1`) is rejected with a TYPE MISMATCH error, because `||` takes two `Bool`s.
passpasspasspass
elm / TypeMismatchOneArgumentFunctionWhereTwoTest (must not compile)elm-spec
Defining `f : Int -> Int -> Int` as a function of type `Int -> Int` (`f = g`) is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchParameterisedAliasTest (must not compile)elm-spec
Giving a `Box Int` where a `Box String` is annotated is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchRecordFieldExtraTest (must not compile)elm-spec
Passing the record `{ name = 1, age = 2 }` to a function annotated to take exactly `{ name : Int }` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchRecordFieldsMissingTest (must not compile)elm-spec
Passing the record `{ name = 1 }` to a function annotated to take `{ name : Int, age : Int, size : Int }` is rejected with a TYPE MISMATCH error, because the fields `age` and `size` are missing.
passpasspasspass
elm / TypeMismatchRecordLeftOfAtMostTest (must not compile)elm-spec
Comparing two records with `<=` is rejected with a TYPE MISMATCH error, because `<=` takes `comparable` operands and records are not comparable.
passpasspasspass
elm / TypeMismatchRecordPatternTest (must not compile)elm-spec
A record pattern on an argument annotated as `Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRecordWhereEmptyClosedRecordTest (must not compile)elm-spec
A record with a field, given where the annotation says the empty record `{}`, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidAppendableAddedTest (must not compile)elm-spec
Adding two values of an annotated `appendable` type with `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidCompappendAsIntTest (must not compile)elm-spec
Returning an annotated `compappend` value where the annotation says `Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidComparableAsANumberTest (must not compile)elm-spec
Returning a number literal where the annotation promises a `comparable` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidComparableAsNumberTest (must not compile)elm-spec
Returning an annotated `comparable` value where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidExtensionWhereClosedTest (must not compile)elm-spec
Returning an extensible record argument where the annotation says a closed record is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidExtensionWhereFlexibleAfterAMismatchTest (must not compile)elm-spec
An extensible record argument placed in a list beside an unannotated local value is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsAliasTest (must not compile)elm-spec
Returning a record-alias value where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsFunctionTest (must not compile)elm-spec
Returning a lambda where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsMaybeTest (must not compile)elm-spec
Returning a `Maybe` where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsRecordTest (must not compile)elm-spec
Returning a record where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsRigidVarTest (must not compile)elm-spec
Returning a value of an annotated type variable `a` where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsTupleTest (must not compile)elm-spec
Returning a tuple where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidNumberAsUnitTest (must not compile)elm-spec
Returning `()` where the annotation promises a `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAgainstItsListTest (must not compile)elm-spec
Returning an argument of type `a` where the annotation says `List a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAgainstItsMaybeTest (must not compile)elm-spec
Returning an argument of type `a` where the annotation says `Maybe a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAppendedTest (must not compile)elm-spec
Appending two values of an unconstrained annotated type variable with `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsAliasTest (must not compile)elm-spec
Returning a record-alias value where the annotation promises a type variable `a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsFunctionTest (must not compile)elm-spec
Returning a lambda where the annotation promises a type variable `a` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsMaybeTest (must not compile)elm-spec
A function annotated `a -> a` that returns a `Maybe` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsRecordTest (must not compile)elm-spec
A function annotated `a -> a` that returns a record is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsRigidNumberTest (must not compile)elm-spec
A function that returns its `number` argument where its annotation promises a different type variable is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsTupleTest (must not compile)elm-spec
A function annotated `a -> a` that returns a tuple is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarAsUnitTest (must not compile)elm-spec
A function annotated `a -> a` that returns unit is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchRigidVarComparedTest (must not compile)elm-spec
Comparing values of an unconstrained annotated type variable with `<` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSameRigidExtensionTest (must not compile)elm-spec
An extensible record returned with a field of a different type than its annotation promises is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSecondArgumentToAFunctionTest (must not compile)elm-spec
Passing a number as the second argument of a function that expects a `String` there is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSecondCasePatternTest (must not compile)elm-spec
A `case` on a `String` whose second pattern is a `Char` literal is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSelfAppliedArgumentAgainstANumberTest (must not compile)elm-spec
An unannotated function argument that is applied to itself and also used as a numeric function is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSelfAppliedArgumentAgainstARigidNumberTest (must not compile)elm-spec
A local function argument that is applied to itself and also listed beside a function involving an annotated `number` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchSelfAppliedArgumentAgainstARigidVarTest (must not compile)elm-spec
A local function argument that is applied to itself and also listed beside a function involving an annotated type variable is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchShaderUnderIntTest (must not compile)elm-unspecced
A GLSL shader literal annotated as `Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringAppendedToListTest (must not compile)elm-spec
Appending a `String` to a list with `++` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfConsTest (must not compile)elm-spec
Consing a `String` onto a list of numbers with `::` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfDivideTest (must not compile)elm-spec
A `String` as the left operand of `/` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfIntDivideTest (must not compile)elm-spec
A `String` as the left operand of `//` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfLessThanTest (must not compile)elm-spec
Comparing a `String` with a number using `<` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringLeftOfPlusTest (must not compile)elm-spec
A `String` as the left operand of `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfAtLeastTest (must not compile)elm-spec
Comparing a number with a `String` using `>=` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfAtMostTest (must not compile)elm-spec
Comparing a number with a `String` using `<=` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfGreaterThanTest (must not compile)elm-spec
Comparing a number with a `String` using `>` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfMinusTest (must not compile)elm-spec
A `String` as the right operand of `-` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfNotEqualsTest (must not compile)elm-spec
Comparing a number with a `String` using `/=` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfPlusTest (must not compile)elm-spec
A `String` as the right operand of `+` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfPowerTest (must not compile)elm-spec
A `String` as the right operand of `^` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchStringRightOfTimesTest (must not compile)elm-spec
A `String` as the right operand of `*` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTailPatternTest (must not compile)elm-spec
A list pattern whose tail is a `String` literal is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchThirdCaseBranchTest (must not compile)elm-spec
A `case` whose third branch returns a number while the first two return `String`s is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTriplesDifferTest (must not compile)elm-spec
A triple whose third component does not match its annotation is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTupleAgainstAnAliasTest (must not compile)elm-spec
A list holding a value of an alias for `Int` and a tuple is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTupleComponentPatternTest (must not compile)elm-spec
A tuple pattern whose first component is a `String` literal, matched against a tuple of numbers, is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTupleSizesDifferTest (must not compile)elm-spec
A triple given where the annotation promises a pair is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwentyEightTypeVariablesTest (must not compile)elm-spec
Using a function of 28 unannotated arguments as a number is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoAliasedRecordsTest (must not compile)elm-spec
A value of one record alias annotated as a different record alias is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoArgumentLambdaWhereOneTest (must not compile)elm-spec
A two-argument lambda annotated as `Int -> Int` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoComparableVarsTest (must not compile)elm-spec
A list mixing tuples whose first components have different custom types is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoExtensibleRecordsTest (must not compile)elm-spec
An extensible record returned where the annotation promises a record with a different extension variable is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoFlexibleRecordsTest (must not compile)elm-spec
A record argument whose `name` field is used both as a number and as a `String` is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTwoRigidVarsTest (must not compile)elm-spec
A function annotated `a -> b` that returns its argument is rejected with a TYPE MISMATCH.
passpasspasspass
elm / TypeMismatchTypeUnderAnExposingListTest (must not compile)elm-spec
A value annotated `Int` but defined as `Just 1` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchTypeWhereAnAliasTest (must not compile)elm-spec
A value annotated with a type alias of `Int` but defined as a `String` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnitLeftOfAtLeastTest (must not compile)elm-spec
Comparing two unit values with `>=` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnitPatternTest (must not compile)elm-spec
A function annotated `Int -> Int` whose parameter is the unit pattern `()` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnitsOnBothSidesTest (must not compile)elm-spec
A list of pairs whose second components differ, `( (), 1 )` and `( (), "a" )`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnknownTypeAgainstANumberTest (must not compile)elm-spec
A function whose case branches return `( Just 1, h )` and `( True, x + 1 )` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnknownTypeAgainstARigidNumberTest (must not compile)elm-spec
A function annotated `number -> ( Bool, number )` whose case branches return `( Just 1, h )` and `( True, x )` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnknownTypeAgainstARigidVarTest (must not compile)elm-spec
A function annotated `a -> ( Bool, a )` whose case branches return `( Just 1, h )` and `( True, x )` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUnknownTypesOnBothSidesTest (must not compile)elm-spec
A list of pairs `( h, 1 )` and `( h, "a" )`, built inside a case on `[ 1, "a" ]`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUpdateOfANearFieldTest (must not compile)elm-spec
A record update that sets a misspelt field, `cuont` on a record whose only field is `count`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUpdateOfANumberTest (must not compile)elm-spec
A record update applied to an `Int`, `{ n | x = 1 }` with `n : Int`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUpdateOfAnEmptyRecordTest (must not compile)elm-spec
A record update that sets field `x` on the empty record `{}` is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / TypeMismatchUpdateValueTest (must not compile)elm-spec
A record update that gives an `Int` field a `String`, `{ r | x = "s" }` with `r : { x : Int }`, is rejected with a TYPE MISMATCH error.
passpasspasspass
elm / UnexpectedPatternFloatWithExponentTest (must not compile)elm-spec
A case branch whose pattern is the float literal `1e3` is rejected with an UNEXPECTED PATTERN error.
passpasspasspass
elm / UnknownOperatorAnUnknownOperatorTest (must not compile)elm-spec
Using an operator that no module defines, `1 <=> 2`, is rejected with an UNKNOWN OPERATOR error.
passpasspasspass
elm / UnsafePatternAllDestructPatternsEdgeCaseCasesTest (must not compile)elm-spec
A `let` that destructures a list with `(h :: t) = [ 4, 5 ]` is rejected with an UNSAFE PATTERN error.
passpasspasspass
elm / UnsafePatternDestructFixedListPatternLetDestructCasesTest (must not compile)elm-spec
A `let` that destructures a list with the fixed-length pattern `[ a, b ] = [ 1, 2 ]` is rejected with an UNSAFE PATTERN error.
passpasspasspass
elm / UnsafePatternMixedNestedAliasesAsPatternCasesTest (must not compile)elm-spec
A function parameter pattern `(( { x }, (h :: _) as list ) as all)` is rejected with an UNSAFE PATTERN error.
passpasspasspass
elm / UnsafePatternTripleNestedPatternsPatternArgCasesTest (must not compile)elm-spec
A function parameter pattern `( ( a, b ), { x, y }, h :: t )` is rejected with an UNSAFE PATTERN error.
passpasspasspass
elm / WeirdElseBranchElseNotIndentedTest (must not compile)elm-spec
An `if` inside a `let` binding whose `else` sits at the binding's own column, to the left of its `if`, is rejected with a WEIRD ELSE BRANCH error.
passpasspasspass
elm-error-catalogue / ErrorMessagesIssue103ImportedModuleWithoutModuleLineTest (must not compile)error-message
Importing a module whose file has no `module` line is reported as MODULE NAME MISSING.
passpasspasspass
elm-error-catalogue / ErrorMessagesIssue203ListWithoutArgumentTest (must not compile)error-message
`List` used without its type argument in an annotation is reported as TOO FEW ARGS.
passpasspasspass
elm-error-catalogue / ErrorMessagesIssue234DivTooManyArgsTest (must not compile)error-message
`Html.div` applied to four arguments is reported as TOO MANY ARGS, saying it expects 2.
passpasspasspass
elm-error-catalogue / ErrorMessagesIssue34UnexposedQualifiedTypeTest (must not compile)error-message
A qualified type that its module does not expose is reported as a NAMING ERROR naming the module.
passpasspasspass

Discussions

Discuss this tag·Search the discussions on GitHub

Discussions are on GitHub; one about this tag has [tag:elm19-compile-error] in its title.