mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
checker: improve array errors; gg: remove unused imports
This commit is contained in:
parent
bb93bf34ec
commit
9800cf1e7b
3 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,6 @@
|
|||
module gg
|
||||
|
||||
import gx
|
||||
import os
|
||||
import sokol
|
||||
import sokol.sapp
|
||||
import sokol.sgl
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
|
||||
module gg
|
||||
|
||||
import gx
|
||||
//import gx
|
||||
import os
|
||||
import sokol
|
||||
import sokol.sapp
|
||||
//import sokol.sapp
|
||||
import sokol.sgl
|
||||
import sokol.gfx
|
||||
//import sokol.gfx
|
||||
import stbi
|
||||
|
||||
pub struct Image {
|
||||
|
|
|
@ -3237,7 +3237,8 @@ pub fn (mut c Checker) error(message string, pos token.Position) {
|
|||
if c.pref.is_verbose {
|
||||
print_backtrace()
|
||||
}
|
||||
c.warn_or_error(message, pos, false)
|
||||
msg := message.replace('`array_', '`[]')
|
||||
c.warn_or_error(msg, pos, false)
|
||||
}
|
||||
|
||||
fn (mut c Checker) warn_or_error(message string, pos token.Position, warn bool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue