1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: fix casting of string(MyString('abc')) and byte(MyByte(123)); improve TypeSymbol handling (#12617)

This commit is contained in:
Delyan Angelov
2021-12-01 09:50:53 +02:00
committed by GitHub
parent 519ca90cfa
commit 47aa2b1f93
11 changed files with 348 additions and 278 deletions

View File

@ -92,7 +92,7 @@ pub fn (mut b Builder) cut_to(pos int) string {
pub fn (mut b Builder) write_runes(runes []rune) {
for r in runes {
res := string(r)
res := r.str()
#res.str = String.fromCharCode(r.val)
b << res.bytes()
}