I was experimenting with the new C#7 features and I found something strange. Given the following simplified scenario:
public struct Command { } public class Co
you can't call ref return method that has ref or out param
this change can be fix it
public ref Command CreateCommandWithIndex(out int index) { ref Command cmd = ref cb.GetNextCommand(out index); return ref cmd; }
then when you call this method call it by value