Skip to content

v2.3.2

Choose a tag to compare

@github-actions github-actions released this 06 Sep 05:36
· 7 commits to main since this release

Changed

  • exec-code.md now documents two Roslyn REPL statement-form pitfalls that
    make otherwise-correct C# fail to compile in a raw cs exec fallback.
    Expression auto-return applies only to the final expression and only when it
    has no trailing ; — a trailing semicolon (or the same expression placed
    mid-script) makes it a statement, and a member access, comparison, or ternary
    in statement position is CS0201; drop the ; or write return <expr>;.
    Separately, top-level code is not inside a class instance, so members inherited
    from object are out of unqualified scope — call object.Equals(a, b), not a
    bare Equals(a, b) (a bare call is CS0103). Both were verified against the
    live REPL.