| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
case kInvalidInitializer: {Do invalid initializers not cause compile-time errors?
AFAIK the VM shouldn't receive any kernel AST with compile-time errors in them. So I would assume this to be unreachable, which is probably why it was `UNIMPLEMENTED()` before
ReadPosition(); // read position.ditto about `UNIMPLEMENTED()` if this can only happen in compile-time error scenarios
(also in other such `case kInvalidInitializer` places in this CL)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
case kInvalidInitializer: {Do invalid initializers not cause compile-time errors?
AFAIK the VM shouldn't receive any kernel AST with compile-time errors in them. So I would assume this to be unreachable, which is probably why it was `UNIMPLEMENTED()` before
`InvalidInitializer`s are preceded by compile time errors, similar to `InvalidExpression`s. Normally this result in the VM not running the code, but if you compile to .dill and then run the .dill you *can* encounter them.
The change mimicks the behavior for `InvalidExpression`s.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
case kInvalidInitializer: {Johnni WintherDo invalid initializers not cause compile-time errors?
AFAIK the VM shouldn't receive any kernel AST with compile-time errors in them. So I would assume this to be unreachable, which is probably why it was `UNIMPLEMENTED()` before
`InvalidInitializer`s are preceded by compile time errors, similar to `InvalidExpression`s. Normally this result in the VM not running the code, but if you compile to .dill and then run the .dill you *can* encounter them.
The change mimicks the behavior for `InvalidExpression`s.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
ReadPosition(); // read position.ditto about `UNIMPLEMENTED()` if this can only happen in compile-time error scenarios
(also in other such `case kInvalidInitializer` places in this CL)
Marked as resolved.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[kernel] Implement InvalidInitializer
This updates the Initializer classes such that InvalidInitializer has a message and will throw at runtime, similar to InvalidExpression. All initializers have positions and only FieldInitializer and SuperInitializer have an isSynthetic field.
TEST=pkg/front_end/testcases/general/invalid_initializer.dart
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |