From 6cf3b96a379e5d1bb3dccc77f0c21237b49db613 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 29 Dec 2020 16:10:55 +0200 Subject: [PATCH] ci: fix .out files after 40ce18f --- vlib/v/checker/tests/infix_err.out | 15 +++++++++++---- vlib/v/checker/tests/unwrapped_optional_infix.out | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/vlib/v/checker/tests/infix_err.out b/vlib/v/checker/tests/infix_err.out index 7dbf687c11..63efaf5c2f 100644 --- a/vlib/v/checker/tests/infix_err.out +++ b/vlib/v/checker/tests/infix_err.out @@ -17,15 +17,22 @@ vlib/v/checker/tests/infix_err.vv:9:9: error: `+` cannot be used with `?string` 8 | _ = f() + '' 9 | _ = f() + f() | ^ - 10 | + 10 | 11 | _ = 4 + g() vlib/v/checker/tests/infix_err.vv:11:7: error: `+` cannot be used with `?int` 9 | _ = f() + f() - 10 | + 10 | 11 | _ = 4 + g() | ^ 12 | _ = int(0) + g() // FIXME not detected 13 | _ = g() + int(3) +vlib/v/checker/tests/infix_err.vv:12:12: error: unwrapped optional cannot be used in an infix expression + 10 | + 11 | _ = 4 + g() + 12 | _ = int(0) + g() // FIXME not detected + | ^ + 13 | _ = g() + int(3) + 14 | _ = g() + 3 vlib/v/checker/tests/infix_err.vv:13:9: error: `+` cannot be used with `?int` 11 | _ = 4 + g() 12 | _ = int(0) + g() // FIXME not detected @@ -38,10 +45,10 @@ vlib/v/checker/tests/infix_err.vv:14:9: error: `+` cannot be used with `?int` 13 | _ = g() + int(3) 14 | _ = g() + 3 | ^ - 15 | + 15 | 16 | // binary operands vlib/v/checker/tests/infix_err.vv:17:5: error: left operand for `&&` is not a boolean - 15 | + 15 | 16 | // binary operands 17 | _ = 1 && 2 | ^ diff --git a/vlib/v/checker/tests/unwrapped_optional_infix.out b/vlib/v/checker/tests/unwrapped_optional_infix.out index 6cc32821d9..95497dd4d9 100644 --- a/vlib/v/checker/tests/unwrapped_optional_infix.out +++ b/vlib/v/checker/tests/unwrapped_optional_infix.out @@ -1,5 +1,5 @@ vlib/v/checker/tests/unwrapped_optional_infix.vv:5:16: error: unwrapped optional cannot be used in an infix expression 3 | } - 4 | + 4 | 5 | println(test() == "") - | + | ~~