Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit c0bdbc4

Browse files
dsymeKevinRansom
authored andcommitted
[CompilerPerf] make tuples support Item* with warning (dotnet#4034)
* make tuples support Item* with warning * add deactivated tests for struct tuple * proper return types for Rest, prototype ctors * fix SRTP * fix tests * fix tests * add more protection * improve code for decompiling types * fix unit tests * don't rebuild * make infos systematic to reduce use of tcrefOfAppTy * update test cases * fix build * update test cases * bump FCS version consistently * use consistent names * code review
1 parent dca642f commit c0bdbc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LanguageService/FSharpCheckerExtensions.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ type FSharpChecker with
111111
if func.IsProperty then
112112
let fullNames =
113113
[| if func.HasGetterMethod then
114-
match func.GetterMethod.EnclosingEntity with
114+
match func.GetterMethod.DeclaringEntity with
115115
| Some e -> yield e.TryGetFullName()
116116
| None -> ()
117117
if func.HasSetterMethod then
118-
match func.SetterMethod.EnclosingEntity with
118+
match func.SetterMethod.DeclaringEntity with
119119
| Some e -> yield e.TryGetFullName()
120120
| None -> ()
121121
|]
@@ -124,7 +124,7 @@ type FSharpChecker with
124124
| [||] -> None
125125
| _ -> Some fullNames
126126
else
127-
match func.EnclosingEntity with
127+
match func.DeclaringEntity with
128128
// C# extension method
129129
| Some (Symbol.FSharpEntity Symbol.Class) ->
130130
let fullName = symbolUse.Symbol.FullName.Split '.'

0 commit comments

Comments
 (0)