teal-language/tl

Type checking error when using include_dir on windows

開放

#580 建立於 2022年11月11日

 (2 則留言) (0 個反應) (0 位負責人)Lua (160 個分叉)batch import
buggood first issue

倉庫指標

星標
 (2,811 顆星)
PR 合併指標
 (平均合併 1天 6小時) (30 天內合併 1 個 PR)

描述

The same type will be seen as mismatching, because of a different path, even though the path refers to the same file.

PS C:\Users\Layl\Desktop\mpgb> tl build
========================================
1 error:
src\main.tl:33:30: argument 1: cc.Redirect (defined in src\cc.d.tl:6) is not a cc.Redirect (defined in .\src/cc.d.tl:6)

tlconfig.lua

return {
    source_dir = "src",
    include_dir = { "src" },
    build_dir = "dist",
    global_env_def = "src/cc",
    gen_target = "5.1",
}

貢獻者指南