Skip to content

Dart 2.0 compatibility #2

Description

@nickclmb

Hey, can you please make it compatible with d20:

[SEVERE] DDC builder on package:otdartlib/.package.module Error compiling dartdevc module:otdartlib|lib/.package.ddc.js

[error] The function expression type '(Map<dynamic, dynamic>) → void' isn't of type '(dynamic) → void'. This means its parameter or return type does not match what is expected. Consider changing parameter type(s) or the returned type(s). (package:otdartlib/src/ottypes/bootstrap_transform.dart, line 43, col 27)
[error] The function expression type '(Map<dynamic, dynamic>) → void' isn't of type '(dynamic) → void'. This means its parameter or return type does not match what is expected. Consider changing parameter type(s) or the returned type(s). (package:otdartlib/src/ottypes/bootstrap_transform.dart, line 44, col 27)
[error] The argument type '(Map<dynamic, dynamic>) → Map<dynamic, dynamic>' can't be assigned to the parameter type '(dynamic) → dynamic'. (package:otdartlib/src/ottypes/json0.dart, line 70, col 43)
[error] The function expression type '(Map<dynamic, dynamic>) → bool' isn't of type '(dynamic) → bool'. This means its parameter or return type does not match what is expected. Consider changing parameter type(s) or the returned type(s). (package:otdartlib/src/ottypes/json0.dart, line 74, col 18)
[error] The argument type '(Map<dynamic, dynamic>) → Null' can't be assigned to the parameter type '(dynamic) → void'. (package:otdartlib/src/ottypes/text0.dart, line 74, col 16)
[error] The function expression type '(Map<dynamic, dynamic>) → void' isn't of type '(dynamic) → void'. This means its parameter or return type does not match what is expected. Consider changing parameter type(s) or the returned type(s). (package:otdartlib/src/ottypes/text0.dart, line 122, col 17)
[error] The argument type '(Map<dynamic, dynamic>) → Null' can't be assigned to the parameter type '(dynamic) → void'. (package:otdartlib/src/ottypes/text0.dart, line 135, col 20)
[error] The function expression type '(int, Map<dynamic, dynamic>) → int' isn't of type '(int, dynamic) → int'. This means its parameter or return type does not match what is expected. Consider changing parameter type(s) or the returned type(s). (package:otdartlib/src/ottypes/text0.dart, line 182, col 30)
[error] The argument type '(Map<dynamic, dynamic>) → Map<dynamic, dynamic>' can't be assigned to the parameter type '(dynamic) → dynamic'. (package:otdartlib/src/ottypes/text0.dart, line 260, col 43)

Please fix all errors before compiling (warnings are okay).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions