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

pull/6615/head
Alexander Medvednikov 2020-10-14 21:08:55 +02:00
parent a45481baa3
commit 6ad5ecf569
1 changed files with 3 additions and 2 deletions

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]