DotNet: Unable to pass interface instance through in a Dictionary<string, object> #1044
Labels
bug
This issue is a bug.
closed-for-staleness
effort/medium
Medium work item – a couple days of effort
language/dotnet
Related to .NET bindings (C#, F#, ...)
p1
🐛 Bug Report
Code: https://github.com/rix0rrr/jsii-test-drive/blob/master/dotnet/callback-any/src/CallbackAny/Program.cs#L81
Stack trace:
Impact to CDK
Lazy.anyValue
returnsIResolvable
) cause a runtime type inference error when wrapped into aDictionary<string, object>
that is passed into a CDK API.Dictionary<string, IResolvable>
), or use a dedicated CDK “props” type instead ofDictionary
.The text was updated successfully, but these errors were encountered: