@@ -330,8 +330,8 @@ type StrangeAlsoInt = StrangeInt<()>;
330330fun test19() {
331331 var i1: StrangeInt<builder> = 20;
332332 var i2: StrangeInt<slice> = 30;
333- var i3: StrangeInt<StrangeInt<int>> = 40 as StrangeAlsoInt ;
334- i1 = i2; i2 = i1 ; i1 = i3; i3 = i1 ;
333+ var i3: StrangeInt<StrangeInt<int>> = 40;
334+ i1 = i2 as StrangeInt<builder> ; i1 = i3 as StrangeInt<builder> ;
335335 return (i1 as StrangeInt<()>, i3 as StrangeAlsoInt, i1 is StrangeInt, i1 is StrangeInt<cell>, i3 is StrangeInt, i3 is StrangeAlsoInt);
336336}
337337
@@ -376,7 +376,7 @@ fun test22(w: int | WrapperAlias<int> | slice) {
376376 WrapperAlias<MyInt> => {}
377377 slice => {}
378378 }
379- __expect_type(w, "int | Wrapper<MyInt > | slice");
379+ __expect_type(w, "int | WrapperAlias<int > | slice");
380380 match (w) {
381381 MyInt => {}
382382 slice => {}
@@ -453,23 +453,23 @@ fun main(c: Wrapper<slice>, d: WrappedInt) {
453453@testcase | 104 | | 11 11 13 13 13 2
454454@testcase | 105 | 0 | 80
455455@testcase | 105 | -1 | (null)
456- @testcase | 106 | | (null) (null) 0 777 1 2 typeid-14
456+ @testcase | 106 | | (null) (null) 0 777 1 2 typeid-12
457457@testcase | 107 | 5 | 20 20 5 5 20 777 (null) (null) (null) 0
458- @testcase | 108 | 0 | 777 typeid-15 777 typeid-15
458+ @testcase | 108 | 0 | 777 typeid-1 777 typeid-1
459459@testcase | 108 | -1 | 777 0 777 0
460460@testcase | 109 | | 40 40 70
461461@testcase | 110 | | 20 1 20 42
462- @testcase | 111 | | 5 1 typeid-4 5 1 typeid-4 5 1 typeid-4 5 1 typeid-4
463- @testcase | 112 | -1 | 10 1 777 10 1 typeid-5
464- @testcase | 112 | 0 | 20 1 777 (null) 0 typeid-6
462+ @testcase | 111 | | 5 1 typeid-2 5 1 typeid-2 5 1 typeid-2 5 1 typeid-2
463+ @testcase | 112 | -1 | 10 1 777 10 1 typeid-3
464+ @testcase | 112 | 0 | 20 1 777 (null) 0 typeid-4
465465@testcase | 113 | | 30 -1
466466@testcase | 114 | | 999 (null) 2
467467@testcase | 115 | | 10 0 200 1 -1 200 1 -1
468468@testcase | 116 | | 1 2 3 4
469469@testcase | 117 | | 100 123
470470@testcase | 118 | | 123 1 777 123 1 -1 2
471471@testcase | 119 | | 40 40 -1 -1 -1 -1
472- @testcase | 120 | | (null) typeid-9 777 (null) (null) 0 typeid-11 -1 -1
472+ @testcase | 120 | | (null) typeid-9 777 (null) (null) 0 typeid-10 -1 -1
473473@testcase | 123 | | 10 10 10 10 10
474474
475475
0 commit comments