TortureFnrefDart.dart 481 B

1234567891011121314151617181920212223242526
  1. void assigned() {}
  2. void listed() {}
  3. void mapped() {}
  4. void selfStore() {}
  5. class H {
  6. var cb;
  7. void wire(dynamic selfStore) {
  8. this.cb = assigned;
  9. cb = selfStore;
  10. }
  11. }
  12. final tableTop = [listed];
  13. final mapTop = {'k': mapped};
  14. void aliased() {}
  15. final aliasTop = aliased;
  16. class K {
  17. static final aliasStatic = aliased;
  18. }
  19. void onlyNamed() {}
  20. void otherFn() {}
  21. void positional() {}
  22. void taker() {
  23. reg(cb: onlyNamed);
  24. reg2(handler: otherFn, plain: 1);
  25. reg3(positional);
  26. }