From 6ad5ecf569db8f93557f032be68d431cd96295b4 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 14 Oct 2020 21:08:55 +0200 Subject: [PATCH] table: add "please create a gh issue" to the "compiler bug" error --- vlib/v/table/table.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vlib/v/table/table.v b/vlib/v/table/table.v index cff0af82b1..8b2cf1f269 100644 --- a/vlib/v/table/table.v +++ b/vlib/v/table/table.v @@ -297,7 +297,8 @@ pub fn (t &Table) get_type_symbol(typ Type) &TypeSymbol { return unsafe {&t.types[idx]} } // this should never happen - panic('get_type_symbol: invalid type (typ=$typ idx=$idx). Compiler bug. This should never happen') + panic('get_type_symbol: invalid type (typ=$typ idx=$idx). Compiler bug. This should never happen. Please create a GitHub issue. +') } // get_final_type_symbol follows aliases until it gets to a "real" Type @@ -313,7 +314,7 @@ pub fn (t &Table) get_final_type_symbol(typ Type) &TypeSymbol { return unsafe {&t.types[idx]} } // this should never happen - panic('get_final_type_symbol: invalid type (typ=$typ idx=$idx). Compiler bug. This should never happen') + panic('get_final_type_symbol: invalid type (typ=$typ idx=$idx). Compiler bug. This should never happen. Please create a GitHub issue.') } [inline]