teal-language/tl

Type checking error when using include_dir on windows

Ouverte

#580 ouverte le 11 nov. 2022

 (2 commentaires) (0 réaction) (0 personne assignée)Lua (160 forks)batch import
buggood first issue

Métriques du dépôt

Stars
 (2 810 étoiles)
Métriques de merge PR
 (Merge moyen 1j 6h) (1 PR mergée en 30 j)

Description

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",
}

Guide contributeur