Commit graph

62 commits

Author SHA1 Message Date
Shunsuke Shibayama
aa2cea60dd fix: quantified subroutine subtyping bugs 2023-02-22 02:40:51 +09:00
Shunsuke Shibayama
4dcca2b06d fix(typechecker): type generalization & dereference bugs
* `Context::subtype_of` now has `allow_cast` param. If this is `false`, cast-aware comparisons are not performed.
2023-02-21 17:04:52 +09:00
Shunsuke Shibayama
3fea50f8bc fix: type generalization bugs 2023-02-21 11:20:15 +09:00
Shunsuke Shibayama
4dca7468ab fix(typechecker): generalization bugs 2023-02-21 01:49:10 +09:00
Shunsuke Shibayama
d0c53e456e test: add type check tests 2023-02-20 22:29:44 +09:00
Shunsuke Shibayama
caae853036 Update generalize.rs 2023-02-20 21:44:01 +09:00
Shunsuke Shibayama
6a607870f3 fix: type quantification bugs 2023-02-20 20:38:36 +09:00
Shunsuke Shibayama
51d84fff9e fix: heterogenous array specifying 2023-02-20 00:08:35 +09:00
Shunsuke Shibayama
7103c9f3bb feat(els): display type bounds as inlay hints 2023-02-19 02:39:03 +09:00
Shunsuke Shibayama
855d47f02c fix(typechecker): quantified types unifying 2023-02-19 02:00:54 +09:00
Shunsuke Shibayama
5b8715af27 Update instantiate.rs 2023-02-18 15:42:59 +09:00
Shunsuke Shibayama
b552cad3b2 feat: add Bytes.d.er/Obj.d.er 2023-02-18 13:46:48 +09:00
Shunsuke Shibayama
3aeb63f51b feat: add Array.d.er/Bool.d.er/Nat.d.er 2023-02-18 00:24:25 +09:00
Shunsuke Shibayama
9a131ecc53 fix: #399 2023-02-17 21:27:37 +09:00
Shunsuke Shibayama
677ced0fcd feat: add std.d 2023-02-17 21:09:23 +09:00
Shunsuke Shibayama
51cae591a3 feat: allow separating sample code and doc-comments 2023-02-17 20:37:15 +09:00
Shunsuke Shibayama
7e9cef9c07 chore(els): improve completion 2023-02-17 13:39:46 +09:00
Shunsuke Shibayama
a694880ff4 fix(compiler): eliminate panic!/todo!s 2023-02-16 23:48:22 +09:00
Shunsuke Shibayama
305763f251 Update register.rs 2023-02-16 05:54:21 +09:00
Shunsuke Shibayama
99b44fc02b feat: add PylyzerStatus 2023-02-16 05:43:48 +09:00
Shunsuke Shibayama
5d90029f09 perf: delaying execution of .loc() 2023-02-15 01:08:49 +09:00
Shunsuke Shibayama
929f8b25ce chore(compiler): improve import error messages 2023-02-14 22:58:02 +09:00
Shunsuke Shibayama
99db34b61c feat(els): support d.er renaming
* fix a bug that left diagnostics
* fix to include PyModule in dependencies
* fix `clear_cache`
2023-02-14 19:59:43 +09:00
Shunsuke Shibayama
515b87b106 refactor: condition => test, err_message => msg 2023-02-13 15:56:08 +09:00
Shunsuke Shibayama
2574de3a68 fix: some bugs
Fixed:

* argument `_` of anonymous function disappears
* els crashes
* incomplete `.update!` codegen
2023-02-13 15:06:50 +09:00
Shunsuke Shibayama
da7ff0a258 fix(compiler): issue with warns about other files 2023-02-13 12:26:15 +09:00
Shunsuke Shibayama
2ad38717cd Merge branch 'main' into fix-type-matching 2023-02-13 02:31:37 +09:00
Shunsuke Shibayama
020a9e159b fix(typechecker): type-var subtyping bug 2023-02-13 02:27:30 +09:00
Shunsuke Shibayama
4bb81eccad fix(typechecker): ref/ref! subtyping bug 2023-02-13 02:12:05 +09:00
Shunsuke Shibayama
f194d44286 fix(parse): eliminate todo!s 2023-02-12 20:59:36 +09:00
Shunsuke Shibayama
af0fff8226 fix(compiler): runtime type matching system 2023-02-12 01:34:12 +09:00
Shunsuke Shibayama
26046d90e5 fix(typechecker): type assignment bug for bound methods 2023-02-11 16:00:15 +09:00
Cai BingJun
238fa3cf42 fix: incorrect error message 2023-02-11 12:57:17 +08:00
Shunsuke Shibayama
94a62d22ac fix: improve completion 2023-02-08 20:40:38 +09:00
Shunsuke Shibayama
06b4df6568 fix(REPL): suppress unused vars warn in REPL 2023-02-08 00:12:52 +09:00
Shunsuke Shibayama
89d830c364 feat(Array): add dedup, partition method 2023-02-07 23:59:23 +09:00
Shunsuke Shibayama
95672909f1 Update register.rs 2023-02-07 21:59:24 +09:00
Shunsuke Shibayama
2580e1cc32 fix: unused warning leaks 2023-02-07 01:15:16 +09:00
Shunsuke Shibayama
f6f58d7678 feat(compiler): impl warns for unused private vars 2023-02-06 18:15:17 +09:00
Shunsuke Shibayama
f5a3d32728 WIP 2023-02-06 17:04:12 +09:00
Shunsuke Shibayama
d8f4d14abd feat(parser): add type_spec_to_expr 2023-02-06 12:04:15 +09:00
Shunsuke Shibayama
c44355346e Add some builtin types methods 2023-02-03 13:34:16 +09:00
Shunsuke Shibayama
8cdc735486 Fix builtin types methods 2023-02-03 00:23:42 +09:00
Shunsuke Shibayama
e44ba71aa5 Add some Str! methods 2023-02-01 13:37:41 +09:00
Shunsuke Shibayama
208433d337 Fix a bug 2023-02-01 10:54:23 +09:00
Shunsuke Shibayama
c7096b17f1 Merge branch 'main' into feature-var-params-fn 2023-02-01 02:05:09 +09:00
Shunsuke Shibayama
44781cb030 Fix warns 2023-01-27 11:23:42 +09:00
Shunsuke Shibayama
748cd2c99d Update funcs.rs 2023-01-26 22:37:57 +09:00
GreasrySlug
97cde41592 update: use debug colors 2023-01-26 14:46:44 +09:00
Shunsuke Shibayama
23a7e2caf3 Add user-defined var-params function 2023-01-26 01:20:35 +09:00