Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit816e96e

Browse files
committed
Another IDE unit test fix, compensates for new behavior with "ctors as functions" (changeset 1384847)
1 parent9a23b8c commit816e96e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

‎vsintegration/src/unittests/Tests.LanguageService.ParameterInfo.fs‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,12 +1604,16 @@ We really need to rewrite some code paths here to use the real parse tree rather
16041604
|:? NoParamInfo->()
16051605

16061606
[<Test>]
1607-
memberpublicthis.``LocationOfParams.TypeProviders.BasicWithinExpr``()=
1608-
this.TestParameterInfoLocationOfParams("""
1609-
let f() =
1610-
let r = id( ^N1.T^^< "fo$o"^, ParamIgnored=42 ^> )
1611-
r""",
1612-
additionalReferenceAssemblies=[System.IO.Path.Combine(System.Environment.CurrentDirectory,@"UnitTestsResources\MockTypeProviders\DummyProviderForLanguageServiceTesting.dll")])
1607+
memberpublicthis.``LocationOfParams.TypeProviders.BasicWithinExpr``()=
1608+
try
1609+
this.TestParameterInfoLocationOfParams("""
1610+
let f() =
1611+
let r = id( ^N1.T^^< "fo$o"^, ParamIgnored=42 ^> )
1612+
r""",
1613+
additionalReferenceAssemblies=[System.IO.Path.Combine(System.Environment.CurrentDirectory,@"UnitTestsResources\MockTypeProviders\DummyProviderForLanguageServiceTesting.dll")])
1614+
failwith"unexpected param info for invalid use of constructorless type"
1615+
with
1616+
|:? NoParamInfo->()
16131617

16141618
[<Test>]
16151619
memberpublicthis.``LocationOfParams.TypeProviders.BasicWithinExpr.DoesNotInterfereWithOuterFunction``()=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp