Skip to content
Snippets Groups Projects
  1. Jun 15, 2018
  2. Jun 14, 2018
  3. Jun 13, 2018
  4. Jun 07, 2018
  5. Jun 05, 2018
  6. Jun 01, 2018
    • Nate Bosch's avatar
      More Dart 2 runtime semantic fixes (#844) · cc537293
      Nate Bosch authored
      ```
      type 'WebSocketChannel' is not a subtype of type 'StreamChannel<String>' of 'channel'
      ```
      
      Cast the `WebSocketChannel` to indicate that all values in each
      direction will be `String`.
      
      ```
      type 'CloseGuaranteeChannel<dynamic>' is not a subtype of type 'VirtualChannel'
      ```
      
      Avoid using the `suiteChannel` variable for two types. It needs to start
      as a `VirtualChannel` which has the `id` field, and then later be a
      `StreamChannel`.
      
      ```
      type 'RunnerSuite' is not a subtype of type 'FutureOr<Future<RunnerSuite>>'
      ```
      
      Avoid the attempted Future flattening which was never correct but was
      supported in the Dart 1 VM.
  7. May 31, 2018
  8. May 19, 2018
  9. May 14, 2018
  10. May 03, 2018
  11. May 02, 2018
  12. Apr 17, 2018
  13. Apr 12, 2018
  14. Apr 10, 2018
  15. Apr 06, 2018
  16. Mar 27, 2018
  17. Mar 22, 2018
  18. Mar 20, 2018
  19. Mar 07, 2018
  20. Mar 06, 2018
  21. Mar 02, 2018
  22. Feb 24, 2018
  23. Feb 23, 2018
  24. Feb 10, 2018
  25. Feb 07, 2018
  26. Jan 22, 2018
  27. Jan 03, 2018
  28. Jan 02, 2018
  29. Dec 18, 2017
    • Bob Nystrom's avatar
      Fix a couple of strong mode runtime cast errors. (#733) · 26db9616
      Bob Nystrom authored
      Fix a couple of strong mode runtime cast errors.
      
      In strong mode, a generic type instantiated with dynamic is not a
      subtype of all types. You can't pass a List<dynamic> to something
      expecting, say, List<int>.
      
      These errors are usually detected statically, and most of those have
      been fixed. However, sometimes this becomes a runtime cast, as in:
      
      main() {
        // Store a List<dynamic> in a variable of type dynamic.
        dynamic d = [];
      
        // Implicit runtime downcast from dynamic to List<String>.
        List<String> s = d;
      }
      
      In order to ease the migration to strong mode, DDC has been ignoring
      these cast failures when they involve certain commonly used types. We
      are now in the process of actively fixing those errors.
      
      More context: https://github.com/dart-lang/sdk/issues/27223
Loading