consulo-csharp icon indicating copy to clipboard operation
consulo-csharp copied to clipboard

No type error with inside condition expression

Open VISTALL opened this issue 9 years ago • 0 comments


int intValue = 0;
MethodAttributes attributes = MethodAttributes.Static;

int value = someBoolExpression ? intValue : attributes;  // no error at 'attributes'

VISTALL avatar May 07 '16 12:05 VISTALL