Skip to content

Commit

Permalink
new section (distributive) conditional type seems to be working again
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Jul 8, 2022
1 parent 38e7f7b commit 88a9c00
Show file tree
Hide file tree
Showing 14 changed files with 677 additions and 209 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "libs/asmjit"]
path = libs/asmjit
url = [email protected]:asmjit/asmjit.git
[submodule "libs/doctest"]
path = libs/doctest
url = [email protected]:doctest/doctest.git
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ list(APPEND CMAKE_MODULE_PATH libs)
#add_definitions(-DTRACY_ENABLE)
#include_directories(libs/tracy/)

add_subdirectory(libs/doctest)
add_subdirectory(libs/tracy)
add_subdirectory(libs/fmt)

Expand Down
1 change: 1 addition & 0 deletions libs/doctest
Submodule doctest added at b7c21e
3 changes: 3 additions & 0 deletions src/checker/check2.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ namespace ts::vm2 {
//todo: comparing tuple is much more complex than that
auto rightCurrent = (TypeRef *) right->type;
auto leftCurrent = (TypeRef *) left->type;
if (rightCurrent && !leftCurrent) return false;
if (!rightCurrent && leftCurrent) return false;

while (rightCurrent) {
if (rightCurrent && !leftCurrent) return false;
if (!rightCurrent && leftCurrent) return false;
Expand Down
Loading

0 comments on commit 88a9c00

Please sign in to comment.