-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).Cross-cutting test issues (use area- labels for specific failures; not used for package:test).
Description
I need some clarification to understand this test.
On line 110, the test contains the following line:
this.setterInGlobalScope = globalValue;
If I understand correctly, the reference to this.setterInGlobalScope should resolve to the setter defined in the extension (set setterInGlobalScope(bool x)), and as far as I can tell, the reference to globalValue can only resolve to the global variable (const int globalValue = 0;). Those two have incompatible types, so I would expect an error here, but the test doesn't expect any error.
The same logic appears to apply on line 160:
self.setterInGlobalScope = globalValue;
where self has the type A, the same as this.
Metadata
Metadata
Assignees
Labels
area-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).Cross-cutting test issues (use area- labels for specific failures; not used for package:test).