From d4c1bba856c8ea28a47b93da131aeba5c245910a Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 24 Oct 2019 22:58:01 +0300 Subject: [PATCH] fix V.js --- vlib/builtin/js/array.v | 2 +- vlib/builtin/js/map.v | 2 +- vlib/builtin/js/string.v | 2 +- vlib/compiler/fn.v | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/builtin/js/array.v b/vlib/builtin/js/array.v index 90640e4a8f..de2027ca5e 100644 --- a/vlib/builtin/js/array.v +++ b/vlib/builtin/js/array.v @@ -6,7 +6,7 @@ module builtin import strings -struct array { +pub struct array { pub: data voidptr len int diff --git a/vlib/builtin/js/map.v b/vlib/builtin/js/map.v index c5639d5f83..0b05d8c74b 100644 --- a/vlib/builtin/js/map.v +++ b/vlib/builtin/js/map.v @@ -6,7 +6,7 @@ module builtin import strings -struct map { +pub struct map { obj voidptr } diff --git a/vlib/builtin/js/string.v b/vlib/builtin/js/string.v index 5a8451d5f3..021cbc8220 100644 --- a/vlib/builtin/js/string.v +++ b/vlib/builtin/js/string.v @@ -4,7 +4,7 @@ module builtin -struct string { +pub struct string { //mut: //hash_cache int pub: diff --git a/vlib/compiler/fn.v b/vlib/compiler/fn.v index 175e182aa6..6a408f5fab 100644 --- a/vlib/compiler/fn.v +++ b/vlib/compiler/fn.v @@ -1310,7 +1310,7 @@ fn (p mut Parser) dispatch_generic_fn_instance(f mut Fn, ti TypeInst) { // TODO this is done to prevent a crash as a result of this not being // properly initialised. This is a bug somewhere futher upstream - f.defer_text = []string {} + f.defer_text = []string old_args := f.args new_types := p.replace_type_params(f, ti)