Type mismatch, cannot assign "<array literal>" to "IReadOnlyList<String>"


(Friedrich Westermann) #1

This will not compile in Elements:
Error : Type mismatch, cannot assign “” to "IReadOnlyList"

private static readonly IReadOnlyList<string> invalidCharacters = new[] {"\\", "/", ":", "*", "?", "\"", "<", ">", "|", ";", ",", "=", ""};`

In Vs2017 it compiles without a problem


(RemObjects) #2

Thanks, logged as bugs://81387


(RemObjects) #3

bugs://81387 got closed with status fixed.