teal-language/tl

Type checking error when using include_dir on windows

开放

#580 创建于 2022年11月11日

 (2 条评论) (0 个反应) (0 位负责人)Lua (156 个派生)batch import
buggood first issue

仓库指标

星标
 (2,808 个星标)
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",
}

贡献者指南