Skip to content

Conversation

@edgarfgp
Copy link
Contributor

@edgarfgp edgarfgp commented Oct 15, 2024

Description

Better error range for struct and restricted super types inherit.

Before

Screenshot 2024-10-15 at 22 47 19

After

type C1 = class inherit System.ValueType override x.ToString() = ""  end
                        ^^^^^^^^^^^^^^^^

type TK_I_005 =
  abstract M  : unit -> unit

[<Struct>]
type TK_I_006b = 
   inherit TK_I_005
           ^^^^^^^^

Checklist

  • Test cases added
  • Release notes entry updated

@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/9.0.200.md

@edgarfgp edgarfgp changed the title Better error range for struct inherit Better error range for struct and restricted super types inherit Oct 15, 2024
@edgarfgp edgarfgp marked this pull request as ready for review October 15, 2024 21:19
@edgarfgp edgarfgp requested a review from a team as a code owner October 15, 2024 21:19
@psfinaki psfinaki merged commit 346a59f into dotnet:main Oct 16, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants