Skip to content

Dart 3 compiler crashes in Dartpad #52438

@ragnor-rs

Description

@ragnor-rs

The following snippet crashes Dart 3 compiler in Dartpad:

void main() {
  final tuple = ('1', 2, ['zz', false]);
  Object x = tuple;
  switch(x) {
    case (String a, int b, String c, bool d):
      print('tuple1($a, $b, $c, $d)');
  }
}

Based on Flutter 3.11.0-5.0.pre Dart SDK 3.1.0-85.0.dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.dart2js-crashweb-dart2js

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions