Commit b5ea196
authored
unifying the messaging for type errors and adding type checks for builtin types (#10474)
* surface better type errors in pxsim
* cleanup
* make messages consistent
* add type checking for refaction
* move function
* fix action typecheck and null/undefined type string
* add errors for get/set/delete1 parent c5cef11 commit b5ea196
File tree
4 files changed
+166
-29
lines changed- pxtcompiler/emitter
- pxtsim
4 files changed
+166
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
496 | 500 | | |
497 | | - | |
498 | | - | |
| 501 | + | |
499 | 502 | | |
500 | 503 | | |
501 | 504 | | |
502 | 505 | | |
503 | 506 | | |
504 | 507 | | |
505 | | - | |
| 508 | + | |
506 | 509 | | |
507 | 510 | | |
508 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
534 | 537 | | |
535 | 538 | | |
536 | 539 | | |
| |||
544 | 547 | | |
545 | 548 | | |
546 | 549 | | |
547 | | - | |
548 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
549 | 558 | | |
550 | 559 | | |
551 | 560 | | |
| |||
556 | 565 | | |
557 | 566 | | |
558 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
559 | 571 | | |
560 | 572 | | |
561 | 573 | | |
| |||
574 | 586 | | |
575 | 587 | | |
576 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
577 | 592 | | |
578 | 593 | | |
579 | 594 | | |
| |||
653 | 668 | | |
654 | 669 | | |
655 | 670 | | |
| 671 | + | |
656 | 672 | | |
657 | 673 | | |
658 | 674 | | |
| |||
662 | 678 | | |
663 | 679 | | |
664 | 680 | | |
665 | | - | |
| 681 | + | |
666 | 682 | | |
667 | 683 | | |
668 | | - | |
669 | | - | |
670 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
671 | 691 | | |
0 commit comments