• R
    Disallow ref structs in expression trees (#30871) · ed8a00de
    Rikki Gibson 提交于
    * Expression tree reflike checks WIP
    
    * Move test from emit to semantics
    
    * Fix ExpressionTreeRefLikeWalker
    
    * Fix label indent
    
    * Add more tests
    
    * Move ExpressionTreeRefLikeWalker logic to DiagnosticsPass
    
    * Resolve TODOs in IsExpressionTree
    
    * Ignore BoundConversion when checking for ref structs in expression trees
    
    * Comment on the purpose of `!(node is BoundConversion)`
    
    * Add ErrorCode.ERR_ExpressionTreeCantContainRefStruct
    
    * Use new error code in DiagnosticsPass
    
    * Update tests
    
    * Add TypedReference tests
    
    * Replace IsByRefLikeType check with IsRestrictedType() check
    
    * Simplify VisitLambda
    
    * Add new diagnostics to ArglistTests.ExpressionTreeTest
    ed8a00de
LambdaTests.cs 110.1 KB