@@ -523,8 +523,8 @@ let tooltipTests state =
523
523
13 u
524
524
( concatLines
525
525
[ " val inline add:"
526
- " x: 'a (requires static member ( + ) ) ->"
527
- " y: 'b (requires static member ( + ) )"
526
+ " x: 'a (requires static member ( + )) ->"
527
+ " y: 'b (requires static member ( + ))"
528
528
" -> 'c" ])
529
529
//verify rendering of solved generic constraints in tooltips for members where they are solved
530
530
verifyDescription " solved generic parameters are called out in tooltip"
@@ -548,15 +548,9 @@ let tooltipTests state =
548
548
60 u
549
549
7 u
550
550
( concatLines
551
- #if NET8_ 0
552
- [ " active pattern Value: "
553
- " input: Expr"
554
- " -> option<obj * System.Type>" ])
555
- #else
556
551
[ " active pattern Value: "
557
552
" input: Expr"
558
553
" -> option<objnull * System.Type>" ])
559
- #endif
560
554
verifySignature " generic constraint rendering for IWSAM"
561
555
77 u
562
556
5 u
@@ -570,7 +564,7 @@ let tooltipTests state =
570
564
25 u
571
565
( concatLines [
572
566
" static member GetAwaiter:"
573
- " awaitable: 'Awaitable (requires member GetAwaiter )"
567
+ " awaitable: 'Awaitable (requires member GetAwaiter)"
574
568
" -> Awaiter<^Awaiter,'TResult> (requires :> ICriticalNotifyCompletion and member IsCompleted and member GetResult)"
575
569
])
576
570
verifySignature " basic active pattern"
@@ -584,47 +578,41 @@ let tooltipTests state =
584
578
70 u
585
579
7 u
586
580
( concatLines
587
- #if NET8_ 0
588
- [ " active pattern ValueWithName: "
589
- " input: Expr"
590
- " -> option<obj * System.Type * string>" ])
591
- #else
592
581
[ " active pattern ValueWithName: "
593
582
" input: Expr"
594
583
" -> option<objnull * System.Type * string>" ])
595
- #endif
596
584
verifySignature " interface with members with and without parameter names"
597
585
96 u
598
586
7 u
599
587
( concatLines
600
588
[ " interface IWithAndWithoutParamNames"
601
589
" abstract member WithParamNames: arg1: int * arg2: float -> string"
602
590
" abstract member WithoutParamNames: int * string -> int" ])
603
- verifySignature " function with unsolved nullable parameter" 100 u 7 u ( concatLines [
591
+ verifySignature " function with unsolved nullable parameter" 102 u 7 u ( concatLines [
604
592
" val usesNullable:"
605
- " x: 't | null"
606
- " -> 't (requires reference )"
593
+ " x: 't | null"
594
+ " -> 't (requires reference)"
607
595
])
608
596
609
- verifySignature " function with concrete nullable parameter" 101 u 7 u ( concatLines [
597
+ verifySignature " function with concrete nullable parameter" 103 u 7 u ( concatLines [
610
598
" val usesConcreteNullable:"
611
599
" x: string | null"
612
- " -> String (requires reference ) "
600
+ " -> String"
613
601
])
614
- verifySignature " function with generic nullable return" 102 u 7 u ( concatLines [
602
+ verifySignature " function with generic nullable return" 104 u 7 u ( concatLines [
615
603
" val makesNullable:"
616
- " x: 'x (requires reference) "
617
- " -> 'x | null"
604
+ " x: 'x"
605
+ " -> 'x | null (requires reference) "
618
606
])
619
- verifySignature " function with concrete nullable return" 103 u 7 u ( concatLines [
607
+ verifySignature " function with concrete nullable return" 105 u 7 u ( concatLines [
620
608
" val makesConcreteNullable:"
621
609
" x: string"
622
610
" -> string | null"
623
611
])
624
- verifySignature " function with nullable return from BCL call" 104 u 7 u ( concatLines [
612
+ verifySignature " function with nullable return from BCL call" 106 u 7 u ( concatLines [
625
613
" val usesBCLNullable:"
626
614
" key: string"
627
- " -> string | null"
615
+ " -> string | null"
628
616
])] ]
629
617
630
618
let closeTests state =
0 commit comments