-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.cfe-dysfunctionalitiesIssues for the CFE not behaving as intendedIssues for the CFE not behaving as intended
Description
If I remove this. inside this extension:
extension on HTMLElement {
@JS('__click')
external ExternalDartReference<void Function(Event event)?> onClickReference;
void Function(Event event)? get onClick__ {
return this.onClickReference.toDartObject;
}
set onClick__(void Function(Event event)? onClick) {
this.onClickReference = onClick.toExternalReference;
}
}I get these errors:
web/main.dart:37:12: Error: Undefined name 'onClickReference'.
return onClickReference.toDartObject;
^^^^^^^^^^^^^^^^
web/main.dart:42:5: Error: Setter not found: 'onClickReference'.
onClickReference = onClick.toExternalReference;
^^^^^^^^^^^^^^^^
Metadata
Metadata
Assignees
Labels
area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.cfe-dysfunctionalitiesIssues for the CFE not behaving as intendedIssues for the CFE not behaving as intended