@@ -2048,6 +2048,7 @@ task {
20482048 |> typecheck
20492049 |> shouldFail
20502050 |> withDiagnostics [
2051+ // x: string
20512052 Error 1 , Line 7 , Col 10 , Line 7 , Col 19 , " This expression was expected to have type
20522053 'int'
20532054but here has type
@@ -2071,6 +2072,7 @@ task {
20712072 |> typecheck
20722073 |> shouldFail
20732074 |> withDiagnostics [
2075+ // x: string
20742076 Error 1 , Line 7 , Col 11 , Line 7 , Col 20 , " This expression was expected to have type
20752077 'int'
20762078but here has type
@@ -2094,6 +2096,7 @@ task {
20942096 |> typecheck
20952097 |> shouldFail
20962098 |> withDiagnostics [
2099+ // (x: string): int
20972100 Error 1 , Line 7 , Col 10 , Line 7 , Col 26 , " This expression was expected to have type
20982101 'string'
20992102but here has type
@@ -2123,10 +2126,12 @@ builder {
21232126 |> typecheck
21242127 |> shouldFail
21252128 |> withDiagnostics [
2129+ // y: string
21262130 Error 1 , Line 13 , Col 10 , Line 13 , Col 19 , " This expression was expected to have type
21272131'int'
21282132but here has type
2129- 'string' " ;
2133+ 'string' "
2134+ // x: int
21302135 Warning 25 , Line 12 , Col 10 , Line 12 , Col 16 , " Incomplete pattern matches on this expression."
21312136 ]
21322137
@@ -2153,6 +2158,7 @@ builder {
21532158 |> typecheck
21542159 |> shouldFail
21552160 |> withDiagnostics [
2161+ // y: string
21562162 Error 1 , Line 13 , Col 11 , Line 13 , Col 20 , " This expression was expected to have type
21572163'int'
21582164but here has type
@@ -2182,10 +2188,12 @@ builder {
21822188 |> typecheck
21832189 |> shouldFail
21842190 |> withDiagnostics [
2191+ // (y: int): string
21852192 Error 1 , Line 13 , Col 10 , Line 13 , Col 26 , " This expression was expected to have type
21862193'int'
21872194but here has type
21882195'string' "
2196+ // y: int
21892197 Error 1 , Line 13 , Col 11 , Line 13 , Col 17 , " This expression was expected to have type
21902198'string'
21912199but here has type
0 commit comments