compiler: force custom struct .str() methods to be defined public

This commit is contained in:
joe-conigliaro 2019-12-11 11:24:26 +11:00 committed by Alexander Medvednikov
parent f286387647
commit 3486118ab7
9 changed files with 22 additions and 18 deletions

View file

@ -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} }'
}