1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

table: add "please create a gh issue" to the "compiler bug" error

This commit is contained in:
Alexander Medvednikov 2020-10-14 21:08:55 +02:00
parent a45481baa3
commit 6ad5ecf569

View File

@ -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]