未验证 提交 0d74709c 编写于 作者: F Florian Verdonck 提交者: GitHub

Don't use DisplayNameCore for type name in augmentation. (#13335)

上级 0b829fd0
......@@ -1555,7 +1555,7 @@ module TastDefinitionPrinting =
let layoutExtensionMember denv infoReader (vref: ValRef) =
let (@@*) = if denv.printVerboseSignatures then (@@----) else (@@--)
let tycon = vref.MemberApparentEntity.Deref
let nameL = ConvertNameToDisplayLayout (tagMethod >> mkNav vref.DefinitionRange >> wordL) tycon.DisplayNameCore
let nameL = layoutTyconRefImpl false denv vref.MemberApparentEntity
let nameL = layoutAccessibility denv tycon.Accessibility nameL // "type-accessibility"
let tps =
match PartitionValTyparsForApparentEnclosingType denv.g vref.Deref with
......
......@@ -2621,9 +2621,9 @@ val x: optionRecord = { x = null }
TwoFields2: obj
}
> type Int32 with
> type System.Int32 with
member ExtrinsicExtensionProperty: int
type Int32 with
type System.Int32 with
member ExtrinsicExtensionMethod: unit -> int
> val ``value with spaces in name`` : bool = true
......
......@@ -1866,9 +1866,9 @@ val x: optionRecord = { x = null }
TwoFields2: obj
}
> type Int32 with
> type System.Int32 with
member ExtrinsicExtensionProperty: int
type Int32 with
type System.Int32 with
member ExtrinsicExtensionMethod: unit -> int
> val ``value with spaces in name`` : bool = true
......
......@@ -6166,9 +6166,9 @@ val x: optionRecord = { x = null }
TwoFields2: obj
}
> type Int32 with
> type System.Int32 with
member ExtrinsicExtensionProperty: int
type Int32 with
type System.Int32 with
member ExtrinsicExtensionMethod: unit -> int
> val ``value with spaces in name`` : bool = true
......
......@@ -6168,9 +6168,9 @@ val x: optionRecord = { x = null }
TwoFields2: obj
}
> type Int32 with
> type System.Int32 with
member ExtrinsicExtensionProperty: int
type Int32 with
type System.Int32 with
member ExtrinsicExtensionMethod: unit -> int
> val ``value with spaces in name`` : bool = true
......
......@@ -1636,9 +1636,9 @@ val x: optionRecord
TwoFields2: obj
}
> type Int32 with
> type System.Int32 with
member ExtrinsicExtensionProperty: int
type Int32 with
type System.Int32 with
member ExtrinsicExtensionMethod: unit -> int
> val ``value with spaces in name`` : bool
......
......@@ -6168,9 +6168,9 @@ val x: optionRecord = { x = null }
TwoFields2: obj
}
> type Int32 with
> type System.Int32 with
member ExtrinsicExtensionProperty: int
type Int32 with
type System.Int32 with
member ExtrinsicExtensionMethod: unit -> int
> val ``value with spaces in name`` : bool = true
......
module Foo
open System
type Int32 with
member this.PlusPlus () = this + 1
let two = (1).PlusPlus()
\ No newline at end of file
......@@ -3370,6 +3370,9 @@ module GeneratedSignatureTests =
[<Test>]
let ``classStructInterface-FSC_NETFX_TEST_GENERATED_SIGNATURE`` () = singleTestBuildAndRun "core/classStructInterface" FSC_NETFX_TEST_GENERATED_SIGNATURE
[<Test>]
let ``typeAugmentation-FSC_NETFX_TEST_GENERATED_SIGNATURE`` () = singleTestBuildAndRun "core/typeAugmentation" FSC_NETFX_TEST_GENERATED_SIGNATURE
#endif
#if !NETCOREAPP
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册