amber-lang / amber-lang/amber

[Feature] Compiler flags for any block

未關閉
#689 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
compiler
主要語言
Rust
星號
5.2k
分支
145
平均合併
5 天 3 小時
30 天內合併 PR
7

描述

I think using compiler flags only for functions is too restrictive and should be broaden to all blocks.

For example this code:
```ab
main {
let x = "asd"

echo x as Num
}
```

Raises warning that it's not recommended to do such a cast and recommends adding `allow_absurd_cast` compiler flag for suppression, but it's not possible currently

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。