Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

0

Found in

5.3.4f1

Issue ID

782972

Regression

No

Compiler fails with an error when a dynamic type item is added to a List<dynamic>

Scripting

-

How to reproduce:

1. Open attached project
- Note that there is a compilation error in the console:
error CS0518: The predefined type `System.Runtime.CompilerServices.CallSite' is not defined or imported
error CS0518: The predefined type `System.Runtime.CompilerServices.CallSite`1' is not defined or imported

Compilation failed: 2 error(s), 0 warnings

- The error disappears and everything compiles properly when line 48 (list.Add(one); (object 'one' has the type 'dynamic')) is commented out from the script <..>/Editor/Scripts/Utils/Plist.cs

- Reproduced in Version 5.4.0b11 (323b0238353b), Version 5.3.4p1 (e89f89413a91), Version 5.2.4f1 (98095704e6fe)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.