Test precedence between is and comparison operators
Closes
@@ -2237,3 +2237,42 @@ var a = 3..4 as Range;
(integer_literal)
(integer_literal))
(identifier))))))))
+
+=====================================
+Precedence between is and comparison operators
+=====================================
+
+var someObj = new object();
+var allowedValuesList = someObj is null
+ ? default
+ : new object();
+
+---
+
+(compilation_unit
+ (global_statement
+ (local_declaration_statement
+ (variable_declaration
+ (implicit_type)
+ (variable_declarator
+ (identifier)
+ (equals_value_clause
+ (object_creation_expression
+ (predefined_type)
+ (argument_list)))))))
+ (global_statement
+ (local_declaration_statement
+ (variable_declaration
+ (implicit_type)
+ (variable_declarator
+ (identifier)
+ (equals_value_clause
+ (conditional_expression
+ (is_pattern_expression
+ (identifier)
+ (constant_pattern
+ (null_literal)))
+ (default_expression)
+ (object_creation_expression
+ (predefined_type)
+ (argument_list)))))))))
