Files
sdk/pkg/front_end/testcases/expression/instantiate_enum.expression.yaml.expect
T
Johnni Winther 2e6d7bf6ec [cfe] Report error on instantiation of enums from .dill
Closes https://github.com/dart-lang/sdk/issues/48350

Change-Id: I0cedf8a5a12e1a8dee546eec73e012519a054e13
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232384
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-02-11 11:24:16 +00:00

8 lines
349 B
Plaintext

Errors: {
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Enums can't be instantiated.
En(123, 'foo')
^^
}
method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic
return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:1: Error: Enums can't be instantiated.\nEn(123, 'foo')\n^^";