mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: force custom struct .str() methods to be defined public
This commit is contained in:

committed by
Alexander Medvednikov

parent
f286387647
commit
3486118ab7
@ -199,7 +199,7 @@ mut:
|
||||
last_nl_pos int
|
||||
}
|
||||
|
||||
fn (s ScannerPos) str() string {
|
||||
pub fn (s ScannerPos) str() string {
|
||||
return 'ScannerPos{ ${s.pos:5d} , ${s.line_nr:5d} , ${s.last_nl_pos:5d} }'
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user