You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Might be a duplicate, but I couldn't find a similar example.
With the following example, broken should not type check because (OnePlus m, m) is not the same type as (m, m). However, the compiler gives it a type of a.
I am not sure how to make this example smaller, but there's probably a way to do so.
OS: Linux 4.7.2-1-ARCH #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016 x86_64 GNU/Linux
Browser: Chromium Version 53.0.2785.101 (64-bit)
Elm: 0.17.1
moduleVectexposing (..)
type OnePlus m
=OnePlustype Vect m a
=Vect(List a)nil:Vect ( m, m ) anil =Vect[]head:Vect ( OnePlusm, m ) a->ahead (Vect xs)=Maybe.withDefault (Debug.crash "")(List.head xs)broken =
head nil
The text was updated successfully, but these errors were encountered:
Might be a duplicate, but I couldn't find a similar example.
With the following example,
broken
should not type check because(OnePlus m, m)
is not the same type as(m, m)
. However, the compiler gives it a type ofa
.I am not sure how to make this example smaller, but there's probably a way to do so.
OS:
Linux 4.7.2-1-ARCH #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016 x86_64 GNU/Linux
Browser:
Chromium Version 53.0.2785.101 (64-bit)
Elm:
0.17.1
The text was updated successfully, but these errors were encountered: