teal-language/tl

Type checking error when using include_dir on windows

オープン

#580 opened on 2022/11/11

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Lua (156 件のフォーク)batch import
buggood first issue

Repository metrics

Stars
 (2,808 個のスター)
PR merge metrics
 (平均マージ 1d 6h) (30d で 1 merged 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",
}

コントリビューターガイド