From b2059c481a64f0168b817270d7c5f9b4f8ec1c99 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 16 Aug 2020 19:24:00 +0200 Subject: [PATCH] checker: fix an incorrect name test --- vlib/v/checker/tests/globals/incorrect_name_global.out | 4 ++-- vlib/v/checker/tests/globals/incorrect_name_global.vv | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/v/checker/tests/globals/incorrect_name_global.out b/vlib/v/checker/tests/globals/incorrect_name_global.out index 23d77899d3..7f23d5a191 100644 --- a/vlib/v/checker/tests/globals/incorrect_name_global.out +++ b/vlib/v/checker/tests/globals/incorrect_name_global.out @@ -1,3 +1,3 @@ vlib/v/checker/tests/globals/incorrect_name_global.v:1:1: error: global name `A` cannot contain uppercase letters, use snake_case instead - 1 | __global A := 1 - | ~~~~~~~~~~ \ No newline at end of file + 1 | __global A int = 1 + | ~~~~~~~~~~ diff --git a/vlib/v/checker/tests/globals/incorrect_name_global.vv b/vlib/v/checker/tests/globals/incorrect_name_global.vv index 253abc8c2d..0c957ce0e5 100644 --- a/vlib/v/checker/tests/globals/incorrect_name_global.vv +++ b/vlib/v/checker/tests/globals/incorrect_name_global.vv @@ -1 +1 @@ -__global A := 1 +__global A int = 1