change order of experiments

This commit is contained in:
Luciano Ramalho committed 2021-05-20 23:21:26 -03:00
1 parent eb8982f924
commit fc81928f36
1 file changed
+5 -5
+5 -5
View File
@@ -26,22 +26,22 @@ out_box: OutBox[Cat] = OutBox(Cat())
out_box_si: OutBox[Siamese] = OutBox(Siamese())
out_box = out_box_si
## Incompatible types in assignment
## expression has type "OutBox[Cat]"
# variable has type "OutBox[Siamese]"
## variable has type "OutBox[Siamese]"
# out_box_si = out_box
out_box = out_box_si
################### Contravariance
in_box: InBox[Cat] = InBox()
in_box_si: InBox[Siamese] = InBox()
in_box_si = in_box
## Incompatible types in assignment
## expression has type "InBox[Siamese]"
## variable has type "InBox[Cat]"
# in_box = in_box_si
in_box_si = in_box