816 Commits

Author SHA1 Message Date
Gaith Hallak
78d2ce2e75 Use is_list to check if a var is a list 2022-05-25 19:38:10 +04:00
Gaith Hallak
822d54709e Fixes from the reviews 2022-05-25 19:38:10 +04:00
Gaith Hallak
94c2f998ae Don't destroy and recreate type errors table when not needed 2022-05-25 19:38:10 +04:00
Gaith Hallak
8a9c2a61b2 Add type_vars_uvar ets table to ets_tables() 2022-05-25 19:38:10 +04:00
Gaith Hallak
8e888430d9 Mark tvars as invariant 2022-05-25 19:38:10 +04:00
Gaith Hallak
1980eb30bf Fix warning 2022-05-25 19:38:10 +04:00
Gaith Hallak
ae9b8f8b16 Make is_subtype/4 a separate function 2022-05-25 19:38:10 +04:00
Gaith Hallak
b9af3dbe7f Make opposite_variance a separate function 2022-05-25 19:38:10 +04:00
Gaith Hallak
918346445f Add testing for custom types variance switching 2022-05-25 19:38:10 +04:00
Gaith Hallak
dd259fbc96 Fix dialyzer warning 2022-05-25 19:38:10 +04:00
Gaith Hallak
44bd16264a Variance switching for custom datatypes 2022-05-25 19:38:10 +04:00
Gaith Hallak
3a00476f88 Fix tests after rebase 2022-05-25 19:38:10 +04:00
Gaith Hallak
e5e7958c3f Add tests for variance switching 2022-05-25 19:38:10 +04:00
Gaith Hallak
4348affa3e Fix broken abi tests 2022-05-25 19:38:10 +04:00
Gaith Hallak
77f1631467 Fix broken tests 2022-05-25 19:38:10 +04:00
Gaith Hallak
01fb058def Add variance switching 2022-05-25 19:38:10 +04:00
Gaith Hallak
a068822278 Revert "Draft: Add variance switching"
This reverts commit 92dc6ac169cfbff447ed59de04994f564876b3fb.
2022-05-25 19:38:10 +04:00
Gaith Hallak
b1b7f6cf6d Draft: Add variance switching 2022-05-25 19:38:10 +04:00
Gaith Hallak
88666a36d2 Add tests for interfaces implementing interfaces 2022-05-25 19:38:10 +04:00
Gaith Hallak
adb3455f25 Add test for implementing two interfaces with entrypoints of same names and different types 2022-05-25 19:38:10 +04:00
Gaith Hallak
918ff94a37 Add test for implementing multiple interfaces 2022-05-25 19:38:10 +04:00
Gaith Hallak
df676ff6e9 Report undefined interface errors before checking implemented interfaces 2022-05-25 19:38:10 +04:00
Gaith Hallak
03413ab0d4 Fix the comparison between unit and empty tuple 2022-05-25 19:38:10 +04:00
Gaith Hallak
d8db908485 Add new tests and fix old tests 2022-05-25 19:38:10 +04:00
Gaith Hallak
6003aacdea Fix pretty printing 2022-05-25 19:38:10 +04:00
Gaith Hallak
4c25489963 Add polymorphism to infer types 2022-05-25 19:38:09 +04:00
Gaith Hallak
212534976a Add polymorphism to syntax tree and parser 2022-05-25 19:32:47 +04:00
Gaith Hallak
b0e6418161
Ban empty record definitions (#384)
* Ban empty record declarations

* Use definition instead of declaration

* Fix the failing test
2022-05-25 17:59:46 +04:00
Gaith Hallak
a894876f56
Show the file name in the location if the file is included (#383) 2022-05-10 18:27:06 +04:00
Radosław Rowicki
0af45dfd19
Deprecate AEVM (#375)
* Deprecate AEVM

* Fix test, changelog

* Restore old rebar

* rebar lock fix

* undo export

Co-authored-by: Gaith Hallak <gaithhallak@gmail.com>

* undo export

Co-authored-by: Gaith Hallak <gaithhallak@gmail.com>

* Solve GH suggestions

* Fix the docs

* update docs

* Remove unused tests

* undo weird change

Co-authored-by: Gaith Hallak <gaithhallak@gmail.com>
2022-05-10 15:33:59 +02:00
Gaith Hallak
c5bfcd3bdc
Add MCL_BLS12_381 types to from_fate_builtin (#382)
* Add MCL_BLS12_381 types to from_fate_builtin

* Add tests for mcl_bls12_381 types to sophia value
2022-05-05 13:19:43 +04:00
Dincho Todorov
85879f5380
Fix BLS12_381.fp and BLS12_381.fr size in the docs (#377) 2022-04-27 17:10:56 +03:00
Dincho Todorov
8897cc6cbd
Fix bls12_381 anchor in the stdlib docs (#376) 2022-04-26 20:10:11 +03:00
Marco Walz
0ec7fdc6ac
Merge pull request #368 from aeternity/docs/improve-stdlib-structure
docs: order namespaces alphabetically and place Set in includables
2022-04-12 12:49:40 +02:00
Gaith Hallak
74aff5401b
Introduce pipe operator |> (#371)
* Add pipe operator

* Add tests

* Update docs and CHANGELOG
2022-04-12 12:40:32 +03:00
Marco Walz
cfcf0a8a81
Merge pull request #372 from aeternity/pygments-version
chore(deps): bump pygments version
2022-03-28 12:09:20 +02:00
marc0olo
ca31db7cad chore(deps): bump mkdocs version from 1.2.3 to 1.2.4 2022-03-28 10:43:37 +02:00
marc0olo
196460a607 chore(deps): bump pygments version 2022-03-22 13:19:11 +01:00
marc0olo
bf04362f9a docs: order namespaces alphabetically and place Set in includables 2022-02-04 12:41:08 +01:00
Hans Svensson
d4ea7d5d3b
Clarify signature format for ecverify/ecrecover (#365) 2022-01-11 14:02:40 +01:00
Hans Svensson
c1c3c29393
Add oneline error pretty-printing (#364) 2022-01-11 14:02:05 +01:00
Gaith Hallak
b474bb22cd
Implement caching for compiled child contracts (#363) 2022-01-11 16:50:59 +04:00
Hans Svensson
c04f66a00a Merge pull request #362 from aeternity/ghallak/354
Simplify error messages reported by the compiler
2022-01-11 11:48:11 +04:00
Gaith Hallak
37d86ad45b Simplify error messages reported by the compiler
Add raw error message for 2 errors

The errors: `unnamed_map_update_with_default` and `unbound_variable`.

Revert "Add raw error message for 2 errors"

This reverts commit 0db6d16140d52e29cd8a12d8719ee57ca874d5f5.

Remove trailing new lines and at POS from error messages

Convert multiple line error messages into single line error messages

Remove at POS from pp_why_record context

Change error message with new line before code

Fix tests for changed error messages

Fix the rest of the error messages

Add new line after error message

Remove new line from the end of data error messages
2022-01-11 11:48:08 +04:00
Gaith Hallak
60f3a484e6
Solve constraints together and in the order they are added (#360)
* Solve named argument constraints when record type dereferencing fails

* Revert "Solve named argument constraints when record type dereferencing fails"

This reverts commit ca38a171a9eefdddbc3f6a41f8a268c42662cd7a.

* Solve constraints together and in order

* Fix dialyzer warnings

* Add comment on solve_known_record_types

* Remove unused function
2021-12-16 13:54:06 +02:00
Hans Svensson
40c78c1707
Merge pull request #361 from aeternity/clarify_protected_calls
Clarify documentation on protected calls
2021-12-10 14:52:11 +01:00
Hans Svensson
cf08aeee04 Clarify documentation on protected calls 2021-12-10 14:46:44 +01:00
Marco Walz
a04dd6c86d
Merge pull request #359 from marc0olo/feature/syntax-highlighting
feat: activate Sophia syntax highlighting by using specific pygments …
2021-12-03 17:26:14 +01:00
marc0olo
f488b35f2e chore: make sure python libs are updated on install 2021-12-01 10:06:07 +01:00
marc0olo
cc1de9baba feat: activate Sophia syntax highlighting by using specific pygments version 2021-12-01 08:37:49 +01:00