Skip to content

Type inference on destructuring headers with http #313

@ianffcs

Description

@ianffcs

Describe the bug

When destructuring the headers of a http response the error appears:

Performing hot reload...
lib/cljd-out/acme/main.dart:39:19: Error: 'K' isn't a type.
late final dc.Map<K, V> map$8746_$2;
                  ^
lib/cljd-out/acme/main.dart:39:22: Error: 'V' isn't a type.
late final dc.Map<K, V> map$8746_$2;

To Reproduce
Steps to reproduce the behavior:

  1. clone the repo 'https://github.com/ianffcs/response-header-destructuring-error-repro'
  2. clj -M:cljd init
  3. clj -M:cljd flutter

Expected behavior
It would be possible to println the access-control-allow-headers from the response when button clicked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions