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
{{ message }}
Repository navigation
Commit 8b9bf72
Browse filesBrowse the repository at this point in the historyBrowse files
main:4: error: Incompatible types in assignment (expression has type "Law1[bool, int]", variable has type "Law1[int, bool]") [assignment]
19
+
20
+
21
+
- case: law2_correct_cast
22
+
disable_cache: false
23
+
main: |
24
+
from returns.primitives.laws import Law2
25
+
26
+
first: Law2[int, int, bool]
27
+
second: Law2[bool, bool, int] = first
28
+
29
+
30
+
- case: law2_wrong_cast
31
+
disable_cache: false
32
+
main: |
33
+
from returns.primitives.laws import Law2
34
+
35
+
first: Law2[bool, bool, int]
36
+
second: Law2[int, int, bool] = first
37
+
out: |
38
+
main:4: error: Incompatible types in assignment (expression has type "Law2[bool, bool, int]", variable has type "Law2[int, int, bool]") [assignment]
39
+
40
+
41
+
- case: law3_correct_cast
42
+
disable_cache: false
43
+
main: |
44
+
from returns.primitives.laws import Law3
45
+
46
+
first: Law3[int, int, int, bool]
47
+
second: Law3[bool, bool, bool, int] = first
48
+
49
+
50
+
- case: law3_wrong_cast
51
+
disable_cache: false
52
+
main: |
53
+
from returns.primitives.laws import Law3
54
+
55
+
first: Law3[bool, bool, bool, int]
56
+
second: Law3[int, int, int, bool] = first
57
+
out: |
58
+
main:4: error: Incompatible types in assignment (expression has type "Law3[bool, bool, bool, int]", variable has type "Law3[int, int, int, bool]") [assignment]
0 commit comments