Skip to content

.NET fails mapping objects to interface types when returned from callbacks #290

Closed

Description

@RomainMuller

When a method that is modeled to return an interface type is overridden in .NET, the callback handler fails to map the object to the JSII type, producing the Could not infer JSII type for .NET type error.

This is because the callback code attempts to map the type using the PrimitiveType.Any reference type instead of what is modeled on the overridden function.

This was identified as the root cause of aws/aws-cdk#1027.

Activity

  1. added
    bug
    language/dotnet
    on Nov 2, 2018
  2. self-assigned this
    on Nov 2, 2018
  3. added 3 commits that reference this issue on Nov 2, 2018
    6066e1c
    96ff7f7
    e15919b
  4. added a commit that references this issue on Nov 6, 2018
    0d59dab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buglanguage/dotnet

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions