mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
make types.check public
This commit is contained in:
@ -191,7 +191,9 @@ fn (p mut Parser) print_error_context() {
|
||||
|
||||
fn normalized_error(s string) string {
|
||||
// Print `[]int` instead of `array_int` in errors
|
||||
mut res := s.replace('array_', '[]').replace('__', '.').replace('Option_', '?').replace('main.', '').replace('ptr_', '&')
|
||||
mut res := s.replace('array_', '[]').replace('__', '.')
|
||||
.replace('Option_', '?').replace('main.', '').replace('ptr_', '&')
|
||||
.replace('_dot_', '.')
|
||||
if res.contains('_V_MulRet_') {
|
||||
res = res.replace('_V_MulRet_', '(').replace('_V_', ', ')
|
||||
res = res[..res.len - 1] + ')"'
|
||||
|
Reference in New Issue
Block a user