oridb / mc

Myrddin Compiler
MIT License
387 stars 34 forks source link

std.put("{") crashes the program #185

Closed typeless closed 5 years ago

typeless commented 5 years ago
use std
const main = {
        std.put("{")
}

It can be reproduced on the playground.

refi64 commented 5 years ago

Isn't this because { is the opening of a format specifier? Try doubling it to {{ to escape it.

typeless commented 5 years ago

@kirbyfan64 You're right.