Repository navigation
Commit abab150
authored
New Minor Release (Constants Typechecking) (#124)
* Enhance template handling by adding default type checks and applying class template defaults and able to get the generic type without annoating it manually
* Enhance conditional type handling in ParamOutChecker and DefaultTemplateTypesTest with new tests for default templates and conditional parameters
* Enhance F-bounded polymorphism tests with new generic holder and parameter type checks
* Enhance param-out handling with conditional checks and additional tests for parameter-based contracts
* Enhance conditional type handling in GeneratorChecker and IterableWrapper with new checks and tests for conditional generators and iterables
* Enhance code formatting and add new static methods for default template handling in TemplateManager and DefaultTemplateTypesTest
* Enhance type handling and add support for generics in various checkers and tests
* Enhance constant validation by adding checks for class and global constants, including tests for contract compliance and error handling
* Enhance constant closure handling by adding validation for parameters and return types, including new checks and tests for contract compliance
* Refactor constant declarations to remove type hints for arrays and integers in test fixtures
* Add tests for constant closure parameter and return validation in RuntimeTypeChecker1 parent 7f4263f commit abab150
25 files changed
Lines changed: 2685 additions & 91 deletions
File tree
- src/Internal
- Ast
- Checker
- Generics
- Io
- Reporting
- Wrapper
- tests
- Fixtures/Generics
- Internal
- Ast
- TypeChecking
- Boundaries
- CallablesAndIterators
- Generics
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
556 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
557 | 564 | | |
558 | 565 | | |
559 | 566 | | |
| |||
563 | 570 | | |
564 | 571 | | |
565 | 572 | | |
| 573 | + | |
566 | 574 | | |
567 | 575 | | |
568 | 576 | | |
| |||
798 | 806 | | |
799 | 807 | | |
800 | 808 | | |
801 | | - | |
| 809 | + | |
| 810 | + | |
802 | 811 | | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
803 | 816 | | |
804 | 817 | | |
805 | 818 | | |
| |||
809 | 822 | | |
810 | 823 | | |
811 | 824 | | |
| 825 | + | |
812 | 826 | | |
813 | 827 | | |
814 | 828 | | |
| |||
833 | 847 | | |
834 | 848 | | |
835 | 849 | | |
836 | | - | |
| 850 | + | |
| 851 | + | |
837 | 852 | | |
838 | 853 | | |
839 | 854 | | |
| |||
858 | 873 | | |
859 | 874 | | |
860 | 875 | | |
861 | | - | |
| 876 | + | |
862 | 877 | | |
863 | 878 | | |
864 | 879 | | |
| |||
991 | 1006 | | |
992 | 1007 | | |
993 | 1008 | | |
994 | | - | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
995 | 1017 | | |
996 | 1018 | | |
997 | 1019 | | |
| |||
1025 | 1047 | | |
1026 | 1048 | | |
1027 | 1049 | | |
1028 | | - | |
| 1050 | + | |
| 1051 | + | |
1029 | 1052 | | |
1030 | 1053 | | |
1031 | 1054 | | |
| |||
1044 | 1067 | | |
1045 | 1068 | | |
1046 | 1069 | | |
1047 | | - | |
| 1070 | + | |
1048 | 1071 | | |
1049 | 1072 | | |
1050 | 1073 | | |
| |||
1095 | 1118 | | |
1096 | 1119 | | |
1097 | 1120 | | |
1098 | | - | |
| 1121 | + | |
1099 | 1122 | | |
1100 | 1123 | | |
1101 | 1124 | | |
| |||
1224 | 1247 | | |
1225 | 1248 | | |
1226 | 1249 | | |
1227 | | - | |
| 1250 | + | |
1228 | 1251 | | |
1229 | 1252 | | |
1230 | 1253 | | |
| |||
1286 | 1309 | | |
1287 | 1310 | | |
1288 | 1311 | | |
1289 | | - | |
| 1312 | + | |
1290 | 1313 | | |
1291 | 1314 | | |
1292 | 1315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
143 | 199 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
176 | 181 | | |
177 | | - | |
178 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
179 | 189 | | |
180 | 190 | | |
181 | 191 | | |
| |||
185 | 195 | | |
186 | 196 | | |
187 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
188 | 202 | | |
189 | 203 | | |
190 | 204 | | |
| |||
199 | 213 | | |
200 | 214 | | |
201 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
202 | 225 | | |
203 | 226 | | |
204 | 227 | | |
| |||
211 | 234 | | |
212 | 235 | | |
213 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
214 | 301 | | |
215 | 302 | | |
216 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
298 | 307 | | |
299 | 308 | | |
300 | 309 | | |
| |||
0 commit comments