Adding an extension type with a typedef representation type makes pkg/kernel/test/dart_scope_calculator_test
throw during serialization
#55986
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
cfe-testing
Issues related to testing of the CFE.
The issue was originally found in https://dart-review.googlesource.com/c/sdk/+/370663, with logs here. The simplest repro I can find is this patch:
Patch
It essentially adds the extension type to
dart:js_interop
, and defines the typedef representation type indart:_js_types
. To repro, just patch that onto the SDK and rundart_scope_calculator_test
.Interestingly, if we define
typedef TD<T> = T
in the dart2wasm patch instead, this doesn't repro.The text was updated successfully, but these errors were encountered: